fix(web): keep background shells visible until they exit #10295
Closedishaanko(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/10295/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:L
- apps/web/src/session-logic.ts lines 789 to 790OutdatedResolvedby ishaanko(GitHub profile, opens in a new tab)@@ -741,0 +770,21 @@770+ switch (activity.kind) {771+ case "tool.updated":772+ case "tool.completed": {773+ const toolCallId = extractToolCallId(payload);774+ if (!toolCallId) break;775+ toolRowCallIds.add(toolCallId);776+ if (asRecord(payload.data)?.runInBackground === true) {777+ backgroundToolCallIds.add(toolCallId);778+ }779+ break;780+ }781+ case "task.started":782+ case "task.updated":783+ case "task.completed": {784+ if (!isBackgroundTaskActivity(payload)) break;785+ const toolCallId = asTrimmedString(payload.toolUseId);786+ if (!toolCallId) break;787+ if (activity.kind === "task.started") {788+ startedToolCallIds.add(toolCallId);789+ } else if (activity.kind === "task.updated") {790+ if (payload.isBackgrounded === true) backgroundToolCallIds.add(toolCallId);
juliusmarminge closed this
Sign in to join this conversation.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.