mirror of
https://github.com/stablyai/orca.git
synced 2026-10-03 16:02:11 +00:00
* fix: detect agents via install-dir resolver when which misses on GUI launch The Agents settings pane reports every agent as "Not installed" on a cold GUI launch even when the CLIs are installed and runnable from Terminal. detectInstalledAgents resolves each agent with `which`, which only sees process.env.PATH. GUI-launched Electron inherits a stripped PATH from launchd that omits the user's shell-rc dirs (~/.local/bin, ~/Library/pnpm, ~/.asdf/shims, nvm/volta/fnm/mise shims, ...). The synchronous seed in patchPackagedProcessPath plus the async shell-PATH hydration both race the first detection, and the first result is cached for the session, so the pane can latch onto an empty "nothing installed" snapshot until the user relaunches from a terminal or clicks Refresh. Fall back to resolveCliCommand (the same resolver the spawn path uses in src/main/codex-cli/command.ts) when the PATH lookup misses. Detection now has the same reach as launch: if Orca can run it, Orca detects it, independent of PATH-hydration timing. No false positives — an uninstalled agent still resolves to a bare command name rather than an absolute path. Verified on macOS that resolveCliCommand resolves claude (~/.local/bin), codex (~/.asdf/shims), and opencode (~/Library/pnpm) under a stripped PATH. * fix: bulk resolve agent install-dir detection Co-authored-by: Orca <help@stably.ai> * fix: ignore node navigator for linux webgl policy Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Orca <help@stably.ai>