Repository navigation
Conversation
…runs Lead Stop/StopFailure already ends the turn, but resolveClaudePaneState keeps the pane working for subagents/shells/crons, so the working→done notification edge never fires (or fires late with a stale body). Stamp turnCompleteWhileBackground on that Stop, notify immediately, and suppress the later all-clear done so banners are not delayed by unrelated background work. Fixes stablyai#13245
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change adds 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 45e4f012-653c-441c-a325-a79d22630ad2
📒 Files selected for processing (6)
src/renderer/src/components/terminal-pane/agent-completion-coordinator.test.tssrc/renderer/src/components/terminal-pane/agent-completion-coordinator.tssrc/shared/agent-hook-listener.test.tssrc/shared/agent-hook-listener.tssrc/shared/agent-status-types.test.tssrc/shared/agent-status-types.ts
…ns end-to-end Review follow-up for stablyai#13251/stablyai#13245: - whitelist turnCompleteWhileBackground through applyAgentStatus IPC rebuild - forward agentStatus on non-quiet hook completions and skip lifecycle for the synthetic done banner so the pane can stay working - mint a later stateStartedAt so supersession does not drop the banner - keep suppress sticky across shell/cron intermediate working (no subagent rows)
Review follow-up (batch 4)Addressed confirmed high/medium findings:
Tests updated to assert agentStatus meta + no lifecycle done + shell intermediate path. |
|
Closing this branch because its suppression model is incomplete for the full #13245 reproduction. The local #13295 and #14580 cover the broader subagent/shell/cron cases by keying announcement and late-tail suppression to each turn’s own |
Summary
When a Claude lead turn ends while background subagents/shells/crons are still registered,
resolveClaudePaneStatekeeps the paneworkingso the sidebar does not go grey. That also suppressed theworking → doneedge that mints completion notifications — turns that end by asking the user something stay silent for the whole background lifetime (or forever for background shells).turnCompleteWhileBackgroundon lead Stop/StopFailure when inventory gates the pane toworkingdoneso the same turn does not double-fireFixes #13245
Test plan
pnpm exec vitest run src/shared/agent-status-types.test.ts src/shared/agent-hook-listener.test.ts src/shared/claude-background-task-status.test.ts src/renderer/src/components/terminal-pane/agent-completion-coordinator.test.ts