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
v0.2.5: Linux-specific install commands + docs URL for agents (#13)
Problem: on the Dashboard "Install" modal, Linux users saw the macOS
command (brew install --cask …) with no fallback. Five agents were
affected — Antigravity, Qoder, Trae, Warp, Windsurf — whose install_command
was macOS-specific. The UI copied the brew command verbatim, which fails
on Linux, and linked to a formulae.brew.sh page that's meaningless there.
Schema changes:
- `install_command_linux?: string | null`
- `install_docs_url_linux?: string | null`
Added through the full stack: agents/*.toml → src/main/types.ts →
src/main/registry.ts → src/main/skill-json.ts → src/shared/rpc-schema.ts
→ src/mainview/hooks/useAgents.ts → Dashboard.tsx.
Renderer logic:
- New `detectOS()` prefers `window.api.platform` from the Electron preload
(reliable — Electron sets it to `darwin`/`win32`/`linux`) and falls
back to userAgent sniffing for plain-Vite dev.
- `getInstallCommand(agent)` returns the OS-specific command, falling
back to `install_command` ONLY when it starts with a cross-platform
prefix (npm/npx/pnpm/yarn/bun/pip/pipx/cargo/go/curl/wget). macOS-
specific installers (brew, mas) never leak to Linux/Windows now.
- `getInstallDocsUrl(agent)` checks for a Linux override before falling
back to the shared `install_docs_url`.
- `Dashboard.tsx::InstallGuideModal` replaces its inline
`isWindows ? … : …` with these helpers so all three OSes are handled
uniformly.
TOML data:
- qoder: `install_command_linux = "npm install -g @qoder-ai/qodercli"`
(the Windows command happens to be the right one for Linux too).
- antigravity, warp, windsurf, trae: no `install_command_linux` (Google
and Warp distribute through their own apt/yum repos with per-distro
one-liners; Trae has no native Linux build yet). All four get an
`install_docs_url_linux` pointing at the official Linux download page
so users click through to authoritative instructions instead of a
useless brew-cask URL.
Version bump to 0.2.5 so the change lands via electron-updater.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments