fix(client-runtime): keep subagent questions off parent threads #26367
main fromrefs/pull/26367/head·merged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubProblem#
Live questions from subagents appeared as pending requests on parent threads, even though the parent agent can answer them. This made the thread list suggest that users needed to respond.
Change#
Keep subagent questions within the parent thread without flagging it as needing user input. Preserve notifications for subagent approval requests, which require user attention. Add coverage for both local and delegated subagent questions.
Scope and approval#
This is a focused fix to the existing subagent request indicators. Questions can be handled by the parent agent; approval requests still need user attention.
Verification#
Updated threadShell.test.ts to check that questions do not flag the parent thread, including for delegated subagents, while child threads remain listed. git diff --check passed.
- 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:XS
Approvability#
Verdict: Approved at
37fc466Macroscope's review found this PR approvable — Subagent questions no longer flag parent threads as needing user input, including across delegated environments. Approval alerts and threads' own pending requests remain unchanged, keeping the change limited to attention indicators.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: t3/subagent-input-notifications
- File: .coderabbit.config.ts
- Commit: 37fc466
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
f05a06b6-b0e6-4ae2-b841-2ccf37d575d4
Commits-
Reviewing files that changed from the base of the PR and between f17c9d202b38ea9a009a2d6dc3932e212bad4c24 and 37fc466de73b4d8e49b799be21e6aa020686f009.
Files selected for processing: 2-
packages/client-runtime/src/state/threadShell.test.tspackages/client-runtime/src/state/threadShell.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
Walkthrough
-
Child
user_inputrequests no longer propagate to the parent thread’s pending-subagent flag. Approval requests still propagate, and tests cover local and linked child requests.Changes: Subagent request propagation
Priority:Layer / File(s) Summary Parent propagation rule and coverage
packages/client-runtime/src/state/threadShell.ts,packages/client-runtime/src/state/threadShell.test.tsThe parent-chain logic skips user_inputrequests while preserving approval propagation. Tests verify that child questions do not flag the parent and that linked helpers remain in the child-input list. NormalEstimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
pingdotgg/t3code issue 24096— This issue describes delegated child questions incorrectly marking the parent as awaiting input. This change stops childuser_inputrequests from propagating to the parent.pingdotgg/t3code issue 24053— This issue concerns notifications for delegated child approvals. This change preserves approval propagation but does not change the mobile relay path.
Possibly related PRs
- pingdotgg/t3code#24894 — Both changes distinguish child input visibility from blocking input in the parent.
- pingdotgg/t3code#25537 — Both changes involve the pending-subagent request map and child input listing.
- pingdotgg/t3code#24079 — This PR also changes how child requests affect parent-thread awareness.
Suggested labels:
bugfix,size:SSuggested reviewers:
juliusmarminge,macroscopeapp
Merge Risk:
Minimal · up to37fc4-
The change is ready to merge pending normal checks.
Pre-merge checks:
4-
Check name Status Explanation Title check The title clearly and concisely describes the main change: preventing subagent questions from flagging parent threads. Description check The description covers the problem, fix, scope rationale, and focused verification. It explains why no issue or approval link is included for this focused bug fix. 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.
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
-
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes