fix(clients): questions always move a thread out of Working #28515
main fromrefs/pull/28515/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubA 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:changedpasses (format, lint, knip, typecheck, tests for changed files).- The changed assertions in
entities.test.ts,threadShell.test.ts, andagentAwareness.test.tsfail onmainand pass here. - No UI capture: this is a state rule fix, covered by those tests.
Council review#
Rounds: 2
| Delegate | Round 1 | Round 2 |
|---|---|---|
| Claude Opus 5.5 | 9/10 | 9/10 |
| Muse Wonder Full | no score | no score |
| Codex GPT-6.1 Sol | 9/10 | 10/10 |
🤖 Generated with Claude Code using Claude Opus 5.5, running in T3 Code.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Approvability#
Verdict: Approved at
ea6a3a1Macroscope'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).Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅ Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅ Codex Live turn WebSocket decoded 21.6 KiB 21.6 KiB 0 B (0.0%) 24.4 KiB ✅ Codex Live turn messages 2 2 0 (0.0%) 8 ✅ Claude Total thread wire 5.1 KiB 5.0 KiB −6 B (−0.1%) 6.8 KiB ✅ Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Claude Live turn WebSocket wire 1.3 KiB 1.3 KiB −6 B (−0.5%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅ Claude Live turn messages 2 2 0 (0.0%) 8 ✅ Baseline:
ce48e45· PR result:ea6a3a1· Source CI: successScenario 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.
No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: t3/async-questions-show-input
- File: .coderabbit.config.ts
- Commit: c7d6073
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
cc9aaf80-b533-4188-bc1c-ac81dd732d53
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.tspackages/client-runtime/src/state/models.tspackages/client-runtime/src/state/threadShell.test.tspackages/shared/src/agentAwareness.test.tspackages/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.tsThe client treats every user_inputrequest as pending input. Tests cover an active thread and nonblocking requests.Shared thread awareness
packages/shared/src/agentAwareness.ts,packages/shared/src/agentAwareness.test.tsShared awareness reports waiting_for_inputfor every pendinguser_inputrequest. 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:SSuggested reviewers:
gigioxx,juliusmarminge
Merge Risk:
Minimal · up toc7d60-
No actionable correctness or integration risk was found; the change is mergeable with normal test checks.
Pre-merge checks:
3 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Description check 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… 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 checks: 3 passed-
Check name Status Explanation Title check The title clearly and concisely describes the main change: pending questions move threads out of Working. Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check 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
-
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed