Repository navigation
Description
Operating system
Linux
Orca version
1.4.223. The agent ran on a Linux orca serve host and I watched it from a macOS client. Muse Code 1.4.6. I read the code on main at 1df7d7dd7a.
Details
Summary
If Muse starts subagents in the background and then ends its turn, the sidebar marks the worktree as done while those subagents are still running.
What happened
I asked Muse to run a multi-agent workflow. Muse started it in the background (Running in background · /workflows to monitor) and ended its turn. Muse's own footer kept showing the workflow as running (0/7+ agents done). The Orca sidebar row turned green (done) as soon as the lead's turn ended and stayed green while the agents worked.
How to reproduce
- Launch Muse in an Orca terminal with Orca's hooks installed.
- Ask it to run a workflow, or anything else that starts subagents in the background, so the lead's turn ends before the subagents finish.
- Watch the worktree's sidebar row while the subagents are still running.
Expected: the row stays working until the background subagents finish. Orca already does this for Claude (background_tasks on Stop), Codex, Grok and Pi.
Actual: the row switches to done when the lead's turn ends.
Cause (from reading main)
src/shared/agent-hook-listener/providers/muse-events.ts:65-75:SubagentStartrecords the child session id, and every later event from that child session is dropped (it returnsnull). Children never count toward the pane's status.muse-events.ts:111-115: the lead'sStop/StopFailurealways becomesdone. Nothing checks whether known children are still running.src/main/muse/hook-settings.ts:20-32:MUSE_HOOK_EVENTSsubscribes toSubagentStartbut to no matching stop event, so Orca can't tell when a child finishes.- Muse isn't wired into the shared child-work handling that Codex, Grok and Pi use (feat(agent-status): combine Codex child work through the shared main-agent status fold #22475, fix(agent-status): count only agent work in stats, and read a Grok background subagent as working #22474, feat(pi): show Pi and OMP background children as rows #23201).
Dropping child events was deliberate. It keeps a child's own Stop from marking the lead done. What's missing is the other direction: while children are known to be running, the lead's Stop shouldn't end the pane's work.
Anything else that might help
- Related issues that are not this bug: [Bug]: Interrupted Stop discards running background_tasks, marking live workflows and shells as done #12382 (Claude: an interrupted
Stopdropsbackground_tasks), [Bug]: Sidebar shows agent as done while it is still working (remote runtime projection synthesizes 'done') #18491 (the remote projection inventsdone), [Bug] Qwen Code subagents stuck in "in progress" — SubagentStop not wired to qwen-code roster #26215 (Qwen subagents never leave in progress). - I haven't yet captured which hooks Muse 1.4.6 fires for background workflow agents: whether each one sends
SubagentStartplus some end event, and whether the lead'sStoplists running tasks. A recorded hook transcript should come before any fix.
Activity
AmethystLiang commentedon Oct 12, 2026
Thanks for reporting. Looking into it
fix(muse): keep panes working while spawned background subagents run
fix(muse): keep panes working while spawned background subagents run (#…