Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): questions always move a thread out of Working #28515

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/28515/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

A thread asked a question but stayed in the sidebar's "Working" group. Codex sent it as an async question and kept working, and #15430 kept running threads with async questions in Working until the run ended. A question that waits for you should always show it.

Now any pending user_input request sets Input, blocking or not. The shared client shell (presentThreadShell and the side-chat rollup) and agent awareness (mobile notifications and Live Updates) both drop the async exception, so web, desktop, mobile, and side-chat parents all follow. The server still sends blocking and still uses it to put a pending secret before an async question. The existing async tests now expect Input.

Verification

  • vp run check:changed passes (format, lint, knip, typecheck, tests for changed files).
  • The changed assertions in entities.test.ts, threadShell.test.ts, and agentAwareness.test.ts fail on main and pass here.
  • No UI capture: this is a state rule fix, covered by those tests.

Council review

Rounds: 2

DelegateRound 1Round 2
Claude Opus 5.59/109/10
Muse Wonder Fullno scoreno score
Codex GPT-6.1 Sol9/1010/10

🤖 Generated with Claude Code using Claude Opus 5.5, running in T3 Code.

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

      Approvability

      Verdict: Approved at ea6a3a1

      Macroscope's review found this PR approvable — Open questions, including asynchronous questions, now move threads out of Working and show them as waiting for input. The change affects status presentation and side-chat attention indicators without changing agent execution or stored requests.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      CodexLive turn WebSocket decoded21.6 KiB21.6 KiB0 B (0.0%)24.4 KiB✅
      CodexLive turn messages220 (0.0%)8✅
      ClaudeTotal thread wire5.1 KiB5.0 KiB−6 B (−0.1%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.3 KiB1.3 KiB−6 B (−0.5%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.9 KiB21.9 KiB0 B (0.0%)24.4 KiB✅
      ClaudeLive turn messages220 (0.0%)8✅

      Baseline: ce48e45 · PR result: ea6a3a1 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between ce48e459001817092f45f70f334212bb2b973288 and c7d60733c383d1e0a5f048d57f21e764454c2b23.

      Files selected for processing: 5
      • packages/client-runtime/src/state/entities.test.ts
      • packages/client-runtime/src/state/models.ts
      • packages/client-runtime/src/state/threadShell.test.ts
      • packages/shared/src/agentAwareness.test.ts
      • packages/shared/src/agentAwareness.ts

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

      Walkthrough

      Pending user-input requests now set client shell state to pending input and shared thread awareness to waiting_for_input, regardless of whether the request is blocking or the run is active. Tests reflect the updated behavior.

      Changes: Async user-input status

      Layer / File(s)Summary
      Client shell input state
      packages/client-runtime/src/state/models.ts, packages/client-runtime/src/state/entities.test.ts, packages/client-runtime/src/state/threadShell.test.ts
      The client treats every user_input request as pending input. Tests cover an active thread and nonblocking requests.
      Shared thread awareness
      packages/shared/src/agentAwareness.ts, packages/shared/src/agentAwareness.test.ts
      Shared awareness reports waiting_for_input for every pending user_input request. The test checks this phase and its headline.

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Possibly related issues

      • pingdotgg/t3code#24914 — The issue reports that pending async questions lose the thread-list indicator while the agent runs; this change reports pending input during active runs.
      • pingdotgg/t3code#25806 — The issue concerns async questions appearing as Input in the thread list; this change updates the related status path.
      • pingdotgg/t3code#24096 — The issue describes delegated-task async questions bypassing parent client status rules; this change reports waiting for input for any pending user-input request.

      Suggested labels: size:S

      Suggested reviewers: gigioxx, juliusmarminge

      Merge Risk: Minimal · up to c7d60

      No actionable correctness or integration risk was found; the change is mergeable with normal test checks.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description explains the problem, the behavior change, affected components, and focused verification. It does not include the required Scope and approval section, and it does not provide a triaged…Add a ## Scope and approval section. Link the triaged bug or discussion and include explicit maintainer approval with the approval comment. If this is an obvious focused fix without prior approval, explain why it qualifies for the exemption…
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: pending questions move threads out of Working.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Description check

      Explanation

      The description explains the problem, the behavior change, affected components, and focused verification. It does not include the required Scope and approval section, and it does not provide a triaged issue or explicit maintainer approval of the direction and scope.

      Resolution

      Add a ## Scope and approval section. Link the triaged bug or discussion and include explicit maintainer approval with the approval comment. If this is an obvious focused fix without prior approval, explain why it qualifies for the exemption. Use explicit ## Problem and ## Change headings if the repository requires the template structure to be preserved.

      Finishing Touches
      Generate docstrings
      • Commit to this branch
      • Create a new PR
      Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign in to join this conversation.