fix(desktop): use official install script for Codex CLI instead of npm

@openai/codex on npm uses platform-specific sub-packages and the latest
alpha publishes only a win32-x64 variant, causing EBADPLATFORM on macOS.
Switch to the official install script which handles platform detection.
This commit is contained in:
Will Pfleger
2026-05-22 19:40:41 -04:00
parent 54b618e656
commit aed67c1edf
@@ -95,7 +95,7 @@ const KNOWN_ACP_PROVIDERS: &[KnownAcpProvider] = &[
mcp_command: None,
mcp_hooks: false,
underlying_cli: Some("codex"),
cli_install_commands: &["npm install -g @openai/codex"],
cli_install_commands: &["curl -fsSL https://chatgpt.com/codex/install.sh | sh"],
adapter_install_commands: &["npm install -g @zed-industries/codex-acp"],
install_instructions_url: "https://github.com/zed-industries/codex-acp",
install_hint: "Install the Codex ACP adapter via npm.",