feat(mobile): subagent visibility with agents sheet and liveness #6616
Closedamanthanvi(GitHub profile, opens in a new tab)wants to merge 23 commits into
main fromrefs/pull/6616/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- apps/mobile/src/features/threads/ThreadAgentsSheet.tsx line 380OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +360,21 @@360+ ]361+ : [],362+ [homeAction],363+ );364+ const threadState = useThreadDetail({365+ environmentId: EnvironmentId.make(props.route.params.environmentId),366+ threadId: ThreadId.make(props.route.params.threadId),367+ });368+ const thread = Option.getOrNull(threadState.data);369+ const insets = useSafeAreaInsets();370+ const activities = thread?.activities;371+ const sessionLive = sessionIsLive(thread);372+ const presentation = useMemo(() => {373+ const model = deriveMobileAgentPanelModel({374+ activities: activities ?? [],375+ sessionLive,376+ });377+ return {378+ listItems: buildAgentsListItems(model),379+ model,380+ nowMs: Date.now(),packages/client-runtime/src/state/subagentRuntime.ts line 531OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -458,0 +511,21 @@511+ return agent.firstTurnId ? `direct:${agent.firstTurnId}` : `direct:task:${agent.id}`;512+}513+514+const EMPTY_BATCH_COUNT: SubagentBatchCount = {515+ totalCount: 0,516+ workingCount: 0,517+ failedCount: 0,518+ stoppedCount: 0,519+ idleCount: 0,520+ completedCount: 0,521+};522+523+function deriveSubagentBatchCounts(agents: Iterable<MutableAgent>): {524+ readonly batchKeyByTaskId: ReadonlyMap<string, string>;525+ readonly batchCounts: ReadonlyMap<string, SubagentBatchCount>;526+} {527+ const batchKeyByTaskId = new Map<string, string>();528+ const counts = new Map<string, SubagentBatchCount>();529+ for (const agent of agents) {530+ const key = subagentBatchKey(agent);531+ batchKeyByTaskId.set(agent.id, key);apps/mobile/src/features/threads/ThreadRouteScreen.tsx line 229Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -214,3 +224,6 @@214224 const gitActions = useSelectedThreadGitActions();215225 const requests = useSelectedThreadRequests();216226 const interruptThreadTurn = useAtomCommand(threadEnvironment.interruptTurn, "thread interrupt");227+ const [stopThreadInFlight, setStopThreadInFlight] = useState(false);228+ const [pendingStopCommandId, setPendingStopCommandId] = useState<CommandId | null>(null);229+ const [stopThreadGuard] = useState(() =>apps/mobile/src/features/threads/backgroundWorkStop.ts line 43OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +23,21 @@23+}24+25+export interface BackgroundWorkStopGuardOptions {26+ readonly timeoutMs?: number;27+ readonly onTimeout?: (outcome: BackgroundWorkStopOutcome) => void;28+}29+30+export interface BackgroundWorkStopGuard {31+ readonly isInFlight: () => boolean;32+ readonly resolve: () => void;33+ readonly run: (interrupt: () => Promise<unknown>) => Promise<boolean>;34+}35+36+export function createBackgroundWorkStopGuard(37+ onInFlightChange: (inFlight: boolean) => void,38+ options?: BackgroundWorkStopGuardOptions,39+): BackgroundWorkStopGuard {40+ let inFlight = false;41+ let generation = 0;42+ let timeout: ReturnType<typeof setTimeout> | null = null;43+ const resolve = () => {
- packages/client-runtime/src/state/threads.ts lines 449 to 452OutdatedResolvedby amanthanvi(GitHub profile, opens in a new tab)@@ -435,4 +447,6 @@435447 // windowed collections gain rows from the older page.436448 ...loaded,437449 messages: mergeById(older.messages, loaded.messages),438- activities: mergeById(older.activities, loaded.activities),450+ activities: mergeById(older.activities, loaded.activities).toSorted(451+ compareCanonicalActivities,452+ ),
- apps/mobile/src/features/threads/ThreadAgentsSheet.tsx line 382OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -0,0 +362,21 @@362+ [homeAction],363+ );364+ const threadState = useThreadDetail({365+ environmentId: EnvironmentId.make(props.route.params.environmentId),366+ threadId: ThreadId.make(props.route.params.threadId),367+ });368+ const thread = Option.getOrNull(threadState.data);369+ const insets = useSafeAreaInsets();370+ const activities = thread?.activities;371+ const sessionLive = sessionIsLive(thread);372+ const presentation = useMemo(() => {373+ const model = deriveMobileAgentPanelModel({374+ activities: activities ?? [],375+ sessionLive,376+ });377+ return {378+ listItems: buildAgentsListItems(model),379+ model,380+ nowMs: Date.now(),381+ };382+ }, [activities, sessionLive]);
- apps/mobile/src/features/threads/ThreadRouteScreen.tsx line 319OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -270,11 +307,13 @@270307 useFocusEffect(271308 useCallback(() => {272309 return () => {310+ stopThreadGuard.resolve();311+ setPendingStopCommandId(null);273312 if (props.renderInspector === undefined) {274313 // Inspectors are contextual to this chat destination. Clear the275314 // hidden chat copy after a native push so returning from Files,276315 // Review, or Terminal cannot reserve an empty trailing pane.277316 setInspectorSelection(null);278317 }279318 };280- }, [props.renderInspector]),319+ }, [props.renderInspector, stopThreadGuard]),
- apps/mobile/src/features/threads/agentPresentation.ts line 96OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +76,21 @@76+ readonly activationLabel: string | null;77+}78+79+export function deriveMobileAgentRowModel(80+ agent: RuntimeSubagent,81+ nowMs = Date.now(),82+): MobileAgentRowModel {83+ const role =84+ agent.role?.trim().toLocaleLowerCase() === agent.title.trim().toLocaleLowerCase()85+ ? null86+ : agent.role;87+ return {88+ id: agent.id,89+ title: agent.title,90+ role,91+ modelLabel: formatSubagentModelLabel(agent.model, agent.effort),92+ status: agent.status,93+ statusLabel: STATUS_LABELS[agent.status],94+ elapsed: elapsedBetween(95+ agent.startedAt,96+ isActiveSubagentStatus(agent.status) ? null : agent.completedAt,apps/mobile/src/features/threads/backgroundWorkStop.ts lines 99 to 104OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +84,21 @@84+ };85+}86+87+export function buildBackgroundWorkInterruptInput(88+ thread: Pick<OrchestrationThread, "id" | "session">,89+ commandId: CommandId,90+ serverVersion: string | null,91+) {92+ const runningTurnId = thread.session?.status === "running" ? thread.session.activeTurnId : null;93+ const supportsGuardedInterrupt =94+ serverVersion !== null && satisfiesSemverRange(serverVersion, ">=0.0.33");95+ return {96+ threadId: thread.id,97+ commandId,98+ ...(runningTurnId !== null ? { turnId: runningTurnId } : {}),99+ ...(supportsGuardedInterrupt && thread.session !== null100+ ? {101+ expectedTurnId: thread.session.activeTurnId,102+ expectedSessionUpdatedAt: thread.session.updatedAt,103+ }104+ : {}),apps/server/src/orchestration/Layers/ProviderCommandReactor.ts line 1232OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1187,5 +1225,8 @@11871225 const processTurnInterruptRequested = Effect.fn("processTurnInterruptRequested")(function* (11881226 event: Extract<ProviderIntentEvent, { type: "thread.turn-interrupt-requested" }>,11891227 ) {1228+ const hasGuard =1229+ event.payload.expectedTurnId !== undefined ||1230+ event.payload.expectedSessionUpdatedAt !== undefined;11901231 const thread = yield* resolveThread(event.payload.threadId);11911232 if (!thread) {
- apps/server/src/orchestration/Layers/ProviderCommandReactor.ts line 1243OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1187,4 +1225,19 @@11871225 const processTurnInterruptRequested = Effect.fn("processTurnInterruptRequested")(function* (11881226 event: Extract<ProviderIntentEvent, { type: "thread.turn-interrupt-requested" }>,11891227 ) {1228+ const hasGuard =1229+ event.payload.expectedTurnId !== undefined ||1230+ event.payload.expectedSessionUpdatedAt !== undefined;11901231 const thread = yield* resolveThread(event.payload.threadId);1232+ const decidedGuard = event.payload.guardDecision;1233+ const actualTurnId =1234+ thread === undefined1235+ ? null1236+ : thread.session !== null1237+ ? thread.session.activeTurnId1238+ : (decidedGuard?.actualTurnId ?? null);1239+ const publishOutcome = Effect.fn("publishProviderInterruptOutcome")(function* (1240+ outcome: "interrupted" | "work-changed" | "no-session" | "interrupt-failed",1241+ ) {1242+ if (event.commandId !== null && thread !== undefined) {1243+ yield* appendProviderInterruptResolutionActivity({apps/mobile/src/lib/threadActivity.ts line 325Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -314,7 +311,14 @@314311315312 function deriveWorkLogEntries(316313 activities: ReadonlyArray<OrchestrationThreadActivity>,314+ options?: FoldSubagentActivitiesOptions,317315 ): DerivedWorkLogEntry[] {318- const ordered = Arr.sort(activities, activityOrder);316+ const { orderedActivities, agentTaskIds, rowsByAnchorActivityId } = deriveAgentSpawnRows(317+ activities,318+ options,319+ );319320 const entries: DerivedWorkLogEntry[] = [];320- for (const activity of ordered) {321+ for (const activity of orderedActivities) {322+ const spawnBatch = rowsByAnchorActivityId.get(activity.id);323+ if (spawnBatch) {324+ entries.push(spawnBatch);
- packages/client-runtime/src/state/threads.ts line 452Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -435,4 +447,6 @@435447 // windowed collections gain rows from the older page.436448 ...loaded,437449 messages: mergeById(older.messages, loaded.messages),438- activities: mergeById(older.activities, loaded.activities),450+ activities: mergeById(older.activities, loaded.activities)451+ .slice()452+ .sort(compareCanonicalActivities),apps/server/src/orchestration/Layers/ProjectionPipeline.ts line 1157Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1119,3 +1126,4 @@11191126 yield* Effect.forEach(keptRows, projectionThreadActivityRepository.upsert, {11201127 concurrency: 1,11211128 }).pipe(Effect.asVoid);1129+ sideEffects.livenessRebuilds.set(apps/mobile/src/features/threads/ThreadAgentsSheet.tsx line 339OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +319,21 @@319+ for (const phase of group.phases) {320+ items.push({321+ kind: "phase-header",322+ key: `workflow:${workflowId}:phase:${phase.index}`,323+ phase,324+ });325+ for (const member of phase.members) {326+ items.push({ kind: "agent", key: `agent:${member.id}`, agent: member });327+ }328+ }329+ if (group.unphasedMembers.length > 0) {330+ items.push({331+ kind: "section-header",332+ key: `workflow:${workflowId}:other`,333+ title: "Other agents",334+ });335+ for (const member of group.unphasedMembers) {336+ items.push({ kind: "agent", key: `agent:${member.id}`, agent: member });337+ }338+ }339+ if (group.phases.length === 0 && group.unphasedMembers.length === 0) {
- apps/mobile/src/features/threads/backgroundWorkStop.ts line 103Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -0,0 +86,21 @@86+export function buildBackgroundWorkInterruptInput(87+ thread: Pick<OrchestrationThread, "id" | "session">,88+ commandId: CommandId,89+ serverVersion: string | null,90+) {91+ const runningTurnId = thread.session?.status === "running" ? thread.session.activeTurnId : null;92+ const supportsGuardedInterrupt =93+ serverVersion !== null && satisfiesSemverRange(serverVersion, ">=0.0.33");94+ return {95+ threadId: thread.id,96+ commandId,97+ ...(runningTurnId !== null ? { turnId: runningTurnId } : {}),98+ ...(supportsGuardedInterrupt99+ ? {100+ expectedTurnId: thread.session?.activeTurnId ?? null,101+ ...(thread.session !== null102+ ? { expectedSessionUpdatedAt: thread.session.updatedAt }103+ : {}),104+ }105+ : {}),106+ };
- apps/mobile/src/features/threads/ThreadRouteScreen.tsx lines 533 to 547Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -483,14 +522,9 @@483- !selectedThread ||484- (selectedThread.session?.status !== "running" &&485- selectedThread.session?.status !== "starting")486- ) {522+ if (!selectedThread) {487523 return;488524 }489- return interruptThreadTurn({490- environmentId: selectedThread.environmentId,491- input: {492- threadId: selectedThread.id,493- ...(selectedThread.session.activeTurnId494- ? { turnId: selectedThread.session.activeTurnId }495- : {}),496- },525+ const commandId = CommandId.make(uuidv4());526+ const interruptInput = buildBackgroundWorkInterruptInput(527+ selectedThread,528+ commandId,529+ selectedEnvironmentServerConfig?.environment.serverVersion ?? null,530+ );
- apps/server/src/orchestration/Layers/ProjectionPipeline.ts line 1850Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1714,0 +1776,21 @@1776+ const replayedRevertThreadIds = new Set<ThreadId>();1777+ yield* Effect.forEach(1778+ projectors,1779+ (projector) => bootstrapProjector(projector, replayedRevertThreadIds),1780+ { concurrency: 1 },1781+ );1782+ yield* Effect.forEach(1783+ replayedRevertThreadIds,1784+ Effect.fn("reconcileBootstrapRevertLiveness")(function* (threadId) {1785+ const activities = (yield* projectionThreadActivityRepository.listByThreadId({1786+ threadId,1787+ }))1788+ .slice()1789+ .sort(1790+ (left, right) =>1791+ (left.sequence ?? Number.MAX_SAFE_INTEGER) -1792+ (right.sequence ?? Number.MAX_SAFE_INTEGER) ||1793+ left.createdAt.localeCompare(right.createdAt) ||1794+ left.activityId.localeCompare(right.activityId),1795+ );1796+ threadBackgroundLiveness.rebuildThreadLiveness(threadId, activities);
- apps/server/src/orchestration/Layers/ProjectionPipeline.ts line 1840Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1714,0 +1817,21 @@1817+ const bootstrap: OrchestrationProjectionPipelineShape["bootstrap"] = Effect.gen(function* () {1818+ const replayedRevertLiveness = new Map<ThreadId, BootstrapRevertLivenessReconciliation>();1819+ yield* Effect.forEach(1820+ projectors,1821+ (projector) => bootstrapProjector(projector, replayedRevertLiveness),1822+ { concurrency: 1 },1823+ );1824+ yield* Effect.forEach(1825+ replayedRevertLiveness,1826+ Effect.fn("reconcileBootstrapRevertLiveness")(function* ([threadId, reconciliation]) {1827+ const activityIds = new Set(1828+ [...threadBackgroundLiveness.getThreadLiveAgentActivityIds(threadId)].map(1829+ (activityId) => EventId.make(activityId),1830+ ),1831+ );1832+ for (const activityId of reconciliation.latestReceiptActivityIdByTaskId.values()) {1833+ activityIds.add(activityId);1834+ }1835+ const activities = (yield* projectionThreadActivityRepository.listByActivityIds({1836+ threadId,1837+ activityIds: [...activityIds],
- apps/server/src/orchestration/ThreadBackgroundLiveness.ts line 250Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -141 +212,20 @@141- stateByThreadId.delete(threadId);212+ drop(input.threadId, input.taskId);213+ const state = stateFor(input.threadId);214+ if (taskType !== undefined && MONITOR_TASK_TYPES.has(taskType)) {215+ state.monitors.set(input.taskId, input.activityId ?? previousMonitorActivityId);216+ } else {217+ const startedActivityId =218+ previousAgent?.startedActivityId ??219+ (input.kind === "started" ? input.activityId : undefined);220+ const latestUpdatedActivityId =221+ input.kind === "updated" && input.activityId222+ ? input.activityId223+ : previousAgent?.latestUpdatedActivityId;224+ state.agents.set(input.taskId, {225+ ...(startedActivityId ? { startedActivityId } : {}),226+ ...(latestUpdatedActivityId ? { latestUpdatedActivityId } : {}),227+ });228+ }229+ };230+231+ const clearThreadLiveness = (threadId: string) => {
- apps/server/src/orchestration/Layers/ProviderCommandReactor.ts line 1318OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1193,4 +1299,20 @@1299+ if (decidedGuard?.outcome === "work-changed" || turnChanged || sessionChanged) {1300+ const failure: ProviderFailureActivityInput = {1301+ threadId: event.payload.threadId,1302+ kind: "provider.turn.interrupt.failed",1303+ summary: "Work already changed",1304+ detail:1305+ "The provider session changed after Stop was requested. The newer work was left running.",1306+ turnId: actualTurnId,1307+ createdAt: event.payload.createdAt,1308+ reason: "work-changed",1309+ };1310+ if (event.commandId !== null) {1311+ Object.assign(failure, { requestId: event.commandId });1312+ }1313+ yield* appendProviderFailureActivity(failure);1314+ return yield* publishOutcome("work-changed");11931315 }1194131611951317 // Orchestration turn ids are not provider turn ids, so interrupt by session.1196- yield* providerService.interruptTurn({ threadId: event.payload.threadId });1318+ yield* providerService.interruptTurn({ threadId: event.payload.threadId }).pipe(apps/server/src/orchestration/ThreadBackgroundLiveness.ts lines 190 to 196Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -108,0 +167,21 @@167+ const recordTaskLiveness: ThreadBackgroundLivenessService["Service"]["recordTaskLiveness"] = (168+ input,169+ ) => {170+ const now = currentTimeMillis();171+ const tombstoneKey = taskKey(input.threadId, input.taskId);172+ const tombstone = terminalTombstones.get(tombstoneKey);173+ if (tombstone !== undefined && tombstone.expiresAt <= now) {174+ terminalTombstones.delete(tombstoneKey);175+ }176+ const previousAgent = stateByThreadId.get(input.threadId)?.agents.get(input.taskId);177+ const previousMonitorActivityId = stateByThreadId178+ .get(input.threadId)179+ ?.monitors.get(input.taskId);180+ const terminal =181+ input.kind === "completed" ||182+ input.status === "idle" ||183+ (input.status !== undefined && TERMINAL_STATUSES.has(input.status));184+ if (terminal) {185+ drop(input.threadId, input.taskId);186+ rememberTerminal(input.threadId, input.taskId, now);187+ return;apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts lines 2005 to 2005OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1988,3 +2002,4 @@19882002 taskType: payload.taskType,19892003 status: payload.status,19902004 agentId: payload.agentId,2005+ activityId: String(event.eventId),
- apps/server/src/orchestration/ThreadBackgroundLiveness.ts lines 186 to 186Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -102,7 +165,16 @@102165 };103166104- return {105- recordTaskLiveness: (input) => {106- const taskType = input.taskType;107- if (taskType !== undefined && INERT_TASK_TYPES.has(taskType)) {108- drop(input.threadId, input.taskId);167+ const recordTaskLiveness: ThreadBackgroundLivenessService["Service"]["recordTaskLiveness"] = (168+ input,169+ ) => {170+ const now = currentTimeMillis();171+ const tombstoneKey = taskKey(input.threadId, input.taskId);172+ const tombstone = terminalTombstones.get(tombstoneKey);173+ if (tombstone !== undefined && tombstone.expiresAt <= now) {174+ terminalTombstones.delete(tombstoneKey);175+ }176+ const previousAgent = stateByThreadId.get(input.threadId)?.agents.get(input.taskId);177+ const previousMonitorActivityId = stateByThreadId178+ .get(input.threadId)179+ ?.monitors.get(input.taskId);180+ if (input.status === "idle") {apps/mobile/src/lib/threadAgentActivity.ts lines 191 to 191Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +165,21 @@165+ ? "completed"166+ : "stopped");167+ rowsByAnchorActivityId.set(batch.anchor.id, {168+ id: `agent-spawn:${groupKey}`,169+ createdAt: batch.anchor.createdAt,170+ turnId: batch.anchor.turnId,171+ label: `${lead} · ${status}`,172+ agentLive: live,173+ tone: "info",174+ activityKind: batch.anchor.kind,175+ });176+ }177+178+ return {179+ orderedActivities: ordered,180+ agentTaskIds: fold.agentTaskIds,181+ rowsByAnchorActivityId,182+ };183+}184+185+export function sortThreadActivities(packages/client-runtime/src/state/subagentBatches.ts lines 116 to 116Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +93,21 @@93+ };94+ for (const status of statuses.values()) {95+ count.totalCount += 1;96+ if (isActiveSubagentStatus(status)) {97+ count.workingCount += 1;98+ }99+ if (status === "failed") count.failedCount += 1;100+ if (status === "cancelled" || status === "interrupted") count.stoppedCount += 1;101+ if (status === "idle") count.idleCount += 1;102+ if (status === "completed") count.completedCount += 1;103+ }104+ batchCounts.set(key, count);105+ }106+ return { batchKeyByActivityId, batchCounts };107+}108+109+export function capSubagentRoster(110+ agents: ReadonlyArray<RuntimeSubagent>,111+): ReadonlyArray<RuntimeSubagent> {112+ if (agents.length <= ROSTER_LIMIT) return agents;113+ const rank = (agent: RuntimeSubagent): number =>packages/client-runtime/src/state/subagentBatches.ts lines 7 to 7Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,5 @@1+import type { RuntimeSubagent, RuntimeSubagentStatus } from "./subagentRuntime.ts";2+3+const ROSTER_LIMIT = 100;4+5+export function isActiveSubagentStatus(status: RuntimeSubagentStatus): boolean {
- apps/server/src/orchestration/Layers/ProviderCommandReactor.ts line 1438Resolvedby amanthanvi(GitHub profile, opens in a new tab)@@ -1192,0 +1313,21 @@1313+1314+ // Unguarded web requests retain session-scoped interrupt behavior.1315+ if (!hasGuard) {1316+ yield* providerService.interruptTurn({ threadId: event.payload.threadId });1317+ return;1318+ }1319+ if (decidedGuard?.outcome === "work-changed" || turnChanged || sessionChanged) {1320+ return yield* publishWorkChanged(actualTurnId);1321+ }1322+1323+ const providerSession = (yield* providerService.listSessions()).find(1324+ (session) => session.threadId === event.payload.threadId,1325+ );1326+ const providerTurnId = providerSession?.activeTurnId ?? null;1327+ const providerTurnChanged =1328+ event.payload.expectedTurnId !== undefined && event.payload.expectedTurnId !== providerTurnId;1329+ const providerSessionChanged =1330+ event.payload.expectedSessionUpdatedAt !== undefined &&1331+ event.payload.expectedSessionUpdatedAt !== providerSession?.updatedAt;1332+ if (providerSession === undefined || providerTurnChanged || providerSessionChanged) {1333+ return yield* publishWorkChanged(providerTurnId);
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
65fc837b-220c-461a-94b0-b8b20910bbffYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share