No actionable comments were generated in the recent review.
External image Recent review info
External image Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 2ed9261
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9866391f-bbab-4234-8c5e-e8232ea62907
External image Commits
Reviewing files that changed from the base of the PR and between 2ed92618e60f5ee6ecc694eb834c28105a502d09 and 166789315a3d1dd2630e8830af757bd3e5355e91.
External image Files selected for processing: 3
apps/server/src/mcp/toolkits/orchestrator/tools.tsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.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
The Claude adapter now tracks subagent task ownership across task events and roster updates. It excludes subagent-owned tasks from awaited-task marking. The tool description and adapter instructions clarify how native subagent background work behaves.
Changes: Subagent task ownership
Layer / File(s) Summary Task ownership metadata
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsInternal task records capture subagent ownership from SDK metadata and parent task IDs. Provider-facing task projections omit the internal ownership marker. Ownership across task events and rosters
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsTask events and roster updates preserve ownership, including when snapshots omit it. Task completion and thread task-state clearing remove ownership tracking. Wait eligibility and guidance
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts,apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts,apps/server/src/mcp/toolkits/orchestrator/tools.tsAwaited-task marking excludes subagent-owned tasks. The adapter instructions and tool description explain that native subagent background work does not persist after return. Tests cover ownership updates and awaited-task matching. Priority: External image Normal
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested labels:
bugfixSuggested reviewers:
juliusmarminge,t3dotgg,macroscopeapp
Merge Risk: External image Minimal · up to 16678
The change is mergeable after normal checks. The supplied evidence does not identify an actionable failure in native-subagent background waits.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly and concisely describes the main change: rejecting waits for native Claude subagent commands. Description check Passed The description covers the problem, change, scope, issue reference, verification results, limitations, and agent details. It clearly states that no live Claude session was run. Linked Issues check Passed Issue #24956requirest3_background_waitto avoid accepting tasks owned by a foreground native subagent and to warn the subagent before it returns.ClaudeAdapterV2.tstracks subagent ownership fro…Out of Scope Changes check Passed The changes stay within issue #24956. The adapter changes preserve ownership needed to enforce the foreground-subagent wait guard. The tool-description change documents the guard. The added tests veri…Full details: Linked Issues check
Explanation
Issue
#24956requirest3_background_waitto avoid accepting tasks owned by a foreground native subagent and to warn the subagent before it returns.ClaudeAdapterV2.tstracks subagent ownership fromowned_by_subagentandparent_task_id, retains that ownership across task-list refreshes and Bash timeout transitions, removes owned tasks from the awaited set, and returns them as unmatched. The injected Claude instructions and thet3_background_waitdescription direct native subagents to finish commands before returning and to usedelegate_taskfor work that must outlive the turn. Regression tests cover the unmatched result, ownership retention, and awaited-mark clearing.
Full details: Out of Scope Changes check
Explanation
The changes stay within issue
#24956. The adapter changes preserve ownership needed to enforce the foreground-subagent wait guard. The tool-description change documents the guard. The added tests verify the guard and its ownership edge cases. No unrelated product behavior or unrelated files appear in the reviewed changes.
Finishing Touches
🧪 Generate unit tests (beta)
- 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.