📝 Walkthrough
The Muse adapter now uses a shared identifier for subagent turn references and pending background task entries. It also refreshes the pending roster when a running child’s task ID changes. A regression test checks identifier selection across revisions and verifies that completion empties the roster.
Changes: Muse subagent task identity
Layer / File(s) Summary Select and apply a shared task ID
packages/provider-muse/src/server/adapter.tsSubagent native references and pending background task entries now use childSessionId, thensubagentId, thenitemId. Other items useitemId.Refresh the roster when identifiers change
packages/provider-muse/src/server/adapter.ts,packages/provider-muse/src/server/adapter.test.tsRoster synchronization now runs when a running child’s selected task ID is absent from the pending list. The regression test checks the identifier across successive revisions and verifies that completion empties the roster. Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
- pingdotgg/t3code#23844 — The changes align subagent roster IDs with native turn-item IDs and refresh the roster when the selected ID changes.
Suggested reviewers:
t3dotgg
Merge Risk: 🔵 Low · up to 83964
The change is mergeable, but targeted cleanup assertions should be added to guard against stale background-task entries.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly and concisely identifies the main Muse change: matching background-child roster entries to the turn item's native ID. Description check Passed The description explains the problem, implementation, scope, affected behavior, regression test, and verification results. It also references the related issues and explains why prior approval is appl… Linked Issues check Passed The PR satisfies the coding requirements in issue #23844.backgroundTaskIdselectschildSessionId, thensubagentId, thenitemIdfor subagents, anditemIdfor workflows. The roster and turn-i…Out of Scope Changes check Passed The changes stay within issue #23844. They modify Muse roster identity and synchronization, plus focused Muse adapter regression coverage. The tests support the requested behavior. No Claude backgroun…Full details: Description check
Explanation
The description explains the problem, implementation, scope, affected behavior, regression test, and verification results. It also references the related issues and explains why prior approval is applicable to this focused bug fix.
Full details: Linked Issues check
Explanation
The PR satisfies the coding requirements in issue
#23844.backgroundTaskIdselectschildSessionId, thensubagentId, thenitemIdfor subagents, anditemIdfor workflows. The roster and turn-item native reference use the same identity. Running children resync when the identity changes.itemIdremains the key for routing and cleanup. The regression test covers native-ID precedence, fallback, ID changes, and completion cleanup. The reported tests also cover pending-work deduplication and follow-up-turn filtering.
Full details: Out of Scope Changes check
Explanation
The changes stay within issue
#23844. They modify Muse roster identity and synchronization, plus focused Muse adapter regression coverage. The tests support the requested behavior. No Claude background-command or unrelated provider changes are reported.
✨ 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.