[Bug]: Agent-finished notifications can fire before the top-level agent is done
Operating system
Observed on Windows + WSL, but likely not platform-specific
Orca version
Current public builds
Details
Possible bug / notification UX issue: agent-finished notifications can arrive while the visible top-level agent is still working.
Observed behavior:
- A desktop notification / unread marker can appear even though the main agent in the worktree is still running.
- The notification feels premature because there is no user-actionable completion yet: the top-level agent has not finished the task.
- One likely explanation is that a worker/subagent finished and Orca treated that as an agent-finished event, but I have not proven that conclusively.
Why this is confusing:
- Orca's notification model is most useful when it means "come back now; the agent is done or needs attention."
- If notifications also fire for internal worker/subagent completion, they become noisy and less trustworthy.
- In multi-agent/orchestration workflows, subagents may finish frequently while the parent/coordinator is still actively working.
Desired behavior:
- By default, agent-finished notifications should fire when the top-level visible agent/session reaches a user-actionable idle/done/waiting state.
- Subagent/worker completion should either be folded into the parent session state or exposed as a separate, optional notification category.
- If subagent completion notifications are intentional, please consider adding a setting to disable them separately from top-level agent completion notifications.
This is not an urgent blocker, but it has a high day-to-day signal/noise impact because premature notifications make it harder to trust Orca's completion alerts.
https://github.com/stablyai/orca/issues/7819
Linking this as having similar issues on MacOs ^
Thanks for flagging this, @euclodius — the core bug is fixed on main by #8211 (commit 31cff75a).
What was wrong: while a spawned subagent/teammate (or a SubagentStop) was still running, the lead pane's derived hook state could momentarily become done, which fired an agent-finished notification even though the top-level agent was still working.
The fix: Orca now tracks a per-pane Claude subagent roster and gates the lead's done back to working while any subagent is still running (SubagentStart/SubagentStop/TeammateIdle registration + background_tasks folded into the roster). The completion coordinator therefore never dispatches a finished notification until the lead genuinely finishes; there's test coverage for "reports Stop as working while a background subagent is still running."
This ships in the next release (already in the current v1.4.138-rc builds).
One note: the optional enhancement your report hinted at — a separate/toggleable notification category for subagent completions — is not part of this fix. Happy to track that as its own feature request if it'd be useful. Closing the bug as fixed — please reopen if you still see a premature notification on a build that includes #8211. 🙏
Follow-up on the current public releases: this still reproduces with Orca 1.4.144 + OMP 17.0.2. In the OMP case, the notification body is 'Using yield', and the visible parent continues working. This appears to be a narrower in-process AgentSession case not covered by the fixes tracked here; detailed evidence is in #9181.