You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Muse hooks on Windows start powershell.exe -EncodedCommand on every event before checking whether Orca is listening #26717
Decoded, the script sets the process execution policy, then runs ~/.orca/agent-hooks/muse-hook.cmd if it exists; only when the shim is missing does it check ORCA_AGENT_HOOK_PORT, ORCA_AGENT_HOOK_TOKEN and ORCA_PANE_KEY and exit 0. So every Muse event, including Muse runs started outside Orca, costs cmd.exe -> powershell.exe -> cmd.exe (the shim) -> curl.exe. PowerShell 5.1 cold start alone is a few hundred ms, more under antivirus.
A 64 s process trace on a busy machine showed 26 cmd.exe /C powershell.exe -NoProfile -EncodedCommand ... starts from the Muse binary and 14 muse-hook.cmd starts from PowerShell.
Expected: the same treatment PR #15520 gave the Antigravity hook (and #18875 covered for the Claude hook): call the .cmd shim directly, have the shim post with curl.exe, and exit early in the shim when the ORCA_* variables are absent. No PowerShell on the hot path.
Closing in favor of #26755, which has passed Windows verification and CI and is awaiting merge. Thanks @1aifanatic for #26734; Naveen Chatlapalli is included as a co-author. Paths needing special quoting still use the existing compatibility fallback.
Activity
nwparker commentedon Oct 9, 2026
Closing in favor of #26755, which has passed Windows verification and CI and is awaiting merge. Thanks @1aifanatic for #26734; Naveen Chatlapalli is included as a co-author. Paths needing special quoting still use the existing compatibility fallback.