Skip to content

[Bug]: An agent CLI installed after Orca starts gets no status hooks, so its approval prompts show as working #28076

Open

Description

@mmarabel

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

  1. Start Orca (or orca serve) on a host where Muse Code is not installed.
  2. Install Muse Code on that host.
  3. Open a Muse tab in a worktree and get it to ask for approval, for example a shell command in Auto-review mode.
  4. 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, and orca agent hooks on does 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 hook Notification event with notification_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

Activity

  1. AmethystLiang commented on Oct 12, 2026

    @AmethystLiang
    Contributor

    Thanks for reporting. Looking into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions