fix(orchestration): queue follow-ups sent while a thread compacts #20184
Mergedmaria-rcksmerged 4 commits into
main fromrefs/pull/20184/headmerged by maria-rcks View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
juliusmarminge added labelsmacroscope-review
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
maria-rcks merged thisa54a44c
maria-rcks closed this
Sign in to join this conversation.


No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
770993e9-43e7-4247-8887-26f81265e6c9📥 Commits
Reviewing files that changed from the base of the PR and between 2577baf8b0dc541283fa93d6919b0e354effadf4 and f8f572cf5420c4ada5fd2cdea0b0dd6a4ffcbb0d.
📒 Files selected for processing: 11
apps/mobile/src/state/use-thread-composer-state.tsapps/server/src/orchestration-v2/CommandPolicy.test.tsapps/server/src/orchestration-v2/CommandPolicy.tsapps/server/src/orchestration-v2/Orchestrator.tsapps/server/src/orchestration-v2/RestartContinuation.tsapps/server/src/orchestration-v2/ThreadLaunchService.test.tsapps/web/src/components/ChatView.tsxapps/web/src/components/chat/ChatComposer.tsxapps/web/src/components/chat/ComposerPrimaryActions.tsxpackages/client-runtime/src/state/composerDispatch.test.tspackages/client-runtime/src/state/composerDispatch.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Server dispatch now queues steering messages that target
/compactor/logoutruns. Web and mobile composers disable steering while a thread is compacting, so follow-up messages use queue behavior.Changes: Queue maintenance and compaction behavior
apps/server/src/orchestration-v2/CommandPolicy.ts,apps/server/src/orchestration-v2/Orchestrator.ts,apps/server/src/orchestration-v2/RestartContinuation.ts,apps/server/src/orchestration-v2/CommandPolicy.test.ts/compactand/logoutmessages. When a resolved steer targets one of those runs, dispatch changes toqueue_after_active. Tests cover automatic and explicit steer intents, as well as restart intent.packages/client-runtime/src/state/composerDispatch.ts,packages/client-runtime/src/state/composerDispatch.test.ts,apps/web/src/components/ChatView.tsx,apps/web/src/components/chat/ChatComposer.tsx,apps/web/src/components/chat/ComposerPrimaryActions.tsx,apps/mobile/src/state/use-thread-composer-state.tsPriority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
f8f57Follow-ups targeting
/compactor/logoutqueue rather than being rejected. No actionable issue remains before merge.Security architecture risk: 🔵 Low · up to
f8f57The change reuses the existing message queue rather than introducing new execution privileges or storage formats. No introduced security issue was established, but deferred execution across sign-out was not fully verified.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Pre-merge checks:
4
#20169, and the requested behavior matches the pull request changes and stated objectives.Full details: Description check
Explanation
The description explains the problem, implementation, affected clients, verification, limitations, screenshots, recordings, linked issue, and agent attribution. It is complete despite not using the template section headings explicitly.
Full details: Out of Scope Changes check
Explanation
The changes stay focused on queueing steer follow-ups during native maintenance commands and updating related composer behavior. The description identifies auto-compaction during an active turn as intentionally unchanged.
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.