mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 14:22:09 +03:00
macOS GUI/Electron apps don't inherit the interactive login-shell PATH, so Homebrew/nvm/volta-installed CLIs (Cline, Codex, OpenCode, Continue, Hermes, ...) were reported 'not installed' and the Cline runtime couldn't be spawned. Add a darwin-only, cached, fail-safe login-shell PATH probe ($SHELL -ilc, Hard-Rule-13-safe argv) and merge it into the lookup env in both cliRuntime.getLookupEnv (provider runtime) and the doctor's tool-detector. Pure merge/parse helpers are unit-tested with an injected shell runner. Closes #3321