From aed67c1edfb317fc1621de2d745483b436e4cebd Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Fri, 22 May 2026 19:40:41 -0400 Subject: [PATCH] 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. --- desktop/src-tauri/src/managed_agents/discovery.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/managed_agents/discovery.rs b/desktop/src-tauri/src/managed_agents/discovery.rs index e95621327..7da679dde 100644 --- a/desktop/src-tauri/src/managed_agents/discovery.rs +++ b/desktop/src-tauri/src/managed_agents/discovery.rs @@ -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.",