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: 0712398
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0f73cf7b-cfea-4ae4-a25c-68f02d86cc8b
External image Commits
Reviewing files that changed from the base of the PR and between ce10f7781a7103d8794c8d9da228b750c40c4e3f and 31618e8cd24e3f2c24a3f4175ba43015b13b348d.
External image Files selected for processing: 2
apps/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; 0 remain after this review.
Walkthrough
The Claude adapter now tracks ambient task IDs per live query. It excludes ambient tasks from pending-work rosters and subagent projections, reconciles later task notifications, and marks replayed frames so they do not change ambient classification. Tests cover classification changes, process replacement, and resumed background work.
Changes: Claude ambient task filtering
Layer / File(s) Summary Classify ambient tasks and filter rosters
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts,apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsThe adapter recognizes ambient task types, tracks ambient IDs per live query, and excludes those IDs from pending-work rosters. Tests cover starts from lifecycle frames and roster updates, process replacement, resumed work, and changes in ambient classification. Reconcile ambient task lifecycle events
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts,apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsThe adapter removes ambient tasks from wake buffering and subagent projections, reconciles later notifications, and marks replayed frames. Tests cover a registered subagent becoming ambient and later being reported as ordinary. Priority: External image Normal
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Sequence Diagram(s)
mermaid1 sequenceDiagram 2 participant SDK as SDK task frames 3 participant Adapter as ClaudeAdapterV2 4 participant Roster as Pending-work roster 5 participant Subagent as Subagent projection 6 SDK->>Adapter: Report ambient task ID 7 Adapter->>Roster: Exclude ambient task 8 Adapter->>Subagent: Retire matching projection 9 SDK->>Adapter: Report later task notification 10 Adapter->>Subagent: Reconcile outcome Suggested reviewers:
gigioxx
Merge Risk: External image Minimal · up to 31618
The previously reported cross-turn activity issue is addressed. No actionable merge-blocking risk remains in the supplied evidence.
Architecture risk: External image Medium · up to ce10f
The change affects 1 system.
Changed systems:
apps/serverArchitecture concerns No architecture-level concerns identified.
Review details
Systems and components
- observed — apps/server (service) was modified; 2 changed files map to changed impact.
Before / after behavior
- observed — Modified behavior in apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts: Adds a test using ambient
monitor_wstask frames to check that the task does not project as a subagent, appear in the pending-task roster, or keep background work pending after the turn completes. - observed — Modified behavior in apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: Added
isClaudeAmbientTask, which identifies systemtask_startedmessages whoseambientfield istrue. - observed — Modified behavior in apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts:
parseClaudeBackgroundTaskEntrynow excludes roster entries withambient: true; other entries continue through the existing task-type filter. - observed — Modified behavior in apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: New subagent task-start detection now also excludes ambient tasks, so they are not treated as newly started subagents during wake buffering.
Reliability and maintainability
- inferred — Risk-relevant change factors for apps/server: blast_radius_1; direct_dependents_1
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title says ambient Claude tasks no longer keep a thread running. The changeset classifies ambient background tasks (Claude artifact live-update watchers), filters them from subagent, wake, and Wai… Description check Passed The description follows the template. It has a problem statement (Claude artifact watchers creating a permanent running subagent, and IDs lost between turns), a change section explaining ambient class… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Full details: Title check
Explanation
The title says ambient Claude tasks no longer keep a thread running. The changeset classifies ambient background tasks (Claude artifact live-update watchers), filters them from subagent, wake, and Waiting-roster handling, and stops them from counting as pending work. The title names the primary user-visible effect and uses the conventional commit format with a clear scope.
Full details: Description check
Explanation
The description follows the template. It has a problem statement (Claude artifact watchers creating a permanent running subagent, and IDs lost between turns), a change section explaining ambient classification with the live SDK process and the handling of ambient tasks, and a verification section listing the test command, results, and what was not checked. The Scope and approval section is present but does not link a triaged issue or maintainer approval comment. It cites PR
#17320and a maintainer comment on that PR, which the reviewer should confirm meets the approval requirement.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.