Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep background shells visible until they exit #10295

Closedishaanko(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/10295/headopened View on GitHub

A Claude shell started with run_in_background: true vanished from the UI while it ran. The Bash tool call returns in about 20 ms, so its row settled at once, the shell's task rows were filtered out of the work log, and nothing on screen showed a process that could live for an hour. Reproduced on nightly 0.0.39-nightly.20260906.1292 with Claude Code 2.1.263; the drop lives in the web client, so it is the same on every OS.

Now the shell's task rows fold into the tool row that launched it. The row stays in progress until the terminal task row arrives, keeps that state after its turn settles, stays out of the "Worked for" fold, and then shows the task's final status. Foreground shells are untouched: they emit the same task rows but settle before the tool result. A command Claude moves to the background at its timeout gets the same treatment through the isBackgrounded patch.

The server strips tool input before rows reach clients, so the payload projection now keeps Claude's run_in_background flag as data.runInBackground. Web only. The mobile work log drops the same rows and can take the same fold in a follow-up.

Closes #9107

beforeafter
beforeafter

A background sleep after its turn settled. The row expands to the rest of the group as before.

Written by Claude Fable 5.1 in Claude Code, driven from T3 Code.

Note

Keep background shells visible in chat timeline until they exit

  • ActivityPayloadProjection.ts projection now retains the runInBackground marker across repeated passes without exposing the raw input.
  • session-logic.ts keeps the launching tool row in progress for background shells and folds terminal task statuses into that row.
  • MessagesTimeline.logic.ts renders running background shells as live rows outside settled turn folds, while only current-turn tools drive the thinking indicator.
  • Behavioral Change: task.completed rows for background shells are skipped as standalone work-log entries, and only current-turn in-progress tools mark the timeline row as active.
Macroscope summarized fd82875.
    1. You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This change introduces cross-layer lifecycle reconciliation for background shells, including new server payload projection, task-status mapping, row folding, and persistent live timeline rendering. Although the intent is clear and well tested, the production behavior spans multiple components and adds substantial state-handling logic beyond a small self-contained UI fix.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    5. Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work.

      Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look.

    6. juliusmarminge closed this

Sign in to join this conversation.