Repository navigation
Description
Operating system
Linux (Ubuntu 24.04), headless orca serve. The install logic is shared, so macOS and Windows behave the same way.
Orca version
1.4.223 (runtime). Code read on main at 8e8c087581.
Details
Summary
Orca installs its managed status hooks only for agent CLIs it finds when it starts. If you install an agent CLI while Orca is running and then launch it from Orca, it gets no hooks until Orca restarts, and nothing tells you. The pane falls back to its terminal title for status, so an approval prompt shows as working instead of waiting on you.
Steps to reproduce
- Start Orca (or
orca serve) on a host where Muse Code is not installed. - Install Muse Code on that host.
- Open a Muse tab in a worktree and get it to ask for approval, for example a shell command in Auto-review mode.
- Look at the sidebar while Muse shows "Would you like to run the following command?".
Expected: the worktree shows that the agent is waiting on you.
Actual: it keeps the working spinner. orca agent hooks status reports muse: not_installed. Muse's settings.json has no managed_hooks_path, and ~/.orca/agent-hooks/muse-hook.sh does not exist. After restarting the runtime, orca agent hooks status reports muse: installed.
Cause
- Hooks are installed once, at process start (
src/main/agent-hooks/managed-agent-hook-startup.ts), and any CLI not found at that moment is skipped (src/main/agent-hooks/managed-agent-hook-controls.ts:182). - After that, installation runs again only when the hooks setting or the disabled-agents list changes (
src/main/runtime/runtime-client-settings.ts:177). Launching a newly installed agent doesn't trigger it, andorca agent hooks ondoes nothing while hooks are already on. - With no hooks, status comes from the terminal title. Muse's title carries a braille spinner, which reads as working (
src/shared/agent-title-status.ts:257). Muse reports waiting only from the hookNotificationevent withnotification_type: "permission_prompt"(src/shared/agent-hook-listener/providers/muse-events.ts:99-110).
Any managed-hook agent is affected, not only Muse. Muse makes it obvious because its title keeps spinning while it waits for approval.
Possible fix
When an agent is launched and its hooks are not_installed but its CLI is now present, run that agent's installer through the existing serialized reconciliation. Making orca agent hooks on repair missing hooks on every platform would also give users a fix they can run themselves.
Workaround
Restart Orca or orca serve, then start a new agent session. Turning hooks off and on again also works, but it removes and reinstalls every other agent's hooks too.
Related
- fix(agent-hooks): repair hooks after Windows CLI installation #22330 (draft) covers the Windows side: it refreshes PATH before CLI detection and makes
hooks onrepair missing hooks. Linux, macOS andorca serveget neither change. - [Bug]: Worktree dot shows a green "done" dot when Orca's managed agent hooks are missing #16101: missing hooks look like a real agent status.
- [Bug]: Windows: Antigravity (agy) sessions missing from sidebar — orca-status bundle wiped from ~/.gemini/config/hooks.json and never reinstalled #17672: Antigravity hooks removed on Windows and never reinstalled.
Activity
AmethystLiang commentedon Oct 12, 2026
Thanks for reporting. Looking into it