Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client-runtime): keep subagent questions off parent threads #26367

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/26367/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Problem

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. Approvability

      Verdict: Approved at 37fc466

      Macroscope'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).
    2. 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 f17c9d202b38ea9a009a2d6dc3932e212bad4c24 and 37fc466de73b4d8e49b799be21e6aa020686f009.

      Files selected for processing: 2
      • packages/client-runtime/src/state/threadShell.test.ts
      • packages/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_input requests 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

      Layer / File(s)Summary
      Parent propagation rule and coverage
      packages/client-runtime/src/state/threadShell.ts, packages/client-runtime/src/state/threadShell.test.ts
      The parent-chain logic skips user_input requests while preserving approval propagation. Tests verify that child questions do not flag the parent and that linked helpers remain in the child-input list.
      Priority: Normal

      Estimated 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 child user_input requests 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

      Suggested labels: bugfix, size:S

      Suggested reviewers: juliusmarminge, macroscopeapp

      Merge Risk: Minimal · up to 37fc4

      The change is ready to merge pending normal checks.

      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: preventing subagent questions from flagging parent threads.
      Description checkPassedThe 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 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.
      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
      Comment `@coderabbitai help` to get the list of available commands.

Sign in to join this conversation.