Repository navigation
fix(notifications): restore agent-task-complete dispatch broken by #944 - #1200
Merged
Merged
Conversation
PR #944 removed the sole renderer-side producer of 'agent-task-complete' events on the assumption that BEL would cover the same ground. In practice, not every agent CLI reliably emits BEL on completion (Gemini, some Codex flows), so the "Agent Task Complete" toggle in Settings had zero producers and did nothing. Re-dispatch from onAgentBecameIdle while keeping unread state BEL-only. Double-firing with a concurrent BEL is already collapsed by the 5 s per-worktree dedupe in main/ipc/notifications.ts. Co-authored-by: Orca <[email protected]>
4 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…ablyai#944 (stablyai#1200) Co-authored-by: Orca <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent-task-completenotifications insideonAgentBecameIdle, on the theory that BEL would cover the same ground.onAgentBecameIdleinpty-connection.ts, keeping tab/worktree unread state BEL-only (so non-agent long-running tasks remain first-class attention sources). Double-firing with a concurrent BEL is already collapsed by the existing 5 s per-worktree dedupe inmain/ipc/notifications.ts.{ source: 'agent-task-complete' | 'terminal-bell', terminalTitle? }throughpty-connection-types.ts,use-terminal-pane-lifecycle.ts, anduse-notification-dispatch.ts. The existing unit test that asserted idle-does-nothing is updated to reflect the intended behavior.Fixes the report that notifications stopped working after installing today's build.
Test plan
pnpm typecheckpnpm lint(2 unrelated pre-existing warnings)pnpm vitest run src/renderer/src/components/terminal-pane/pty-connection.test.ts— 20 passedpnpm vitest run src/main/ipc/notifications.test.ts— 10 passedMade with Orca 🐋