From b7140d1e0403f1a23e02be1b6cfdb58b69654b6a Mon Sep 17 00:00:00 2001 From: Chukwuebuka-2003 Date: Thu, 30 Jul 2026 07:27:01 +0000 Subject: [PATCH] fix(desktop): add opencode to default_agent_args for ACP support The default_agent_args function was missing the opencode command, so when a user selects the OpenCode harness without specifying custom arguments, the agent launches without the required 'acp' argument. This caused the ACP initialize to time out after 60 seconds. Fixes #3660 Signed-off-by: Chukwuebuka-2003 --- desktop/src-tauri/src/managed_agents/discovery.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/src-tauri/src/managed_agents/discovery.rs b/desktop/src-tauri/src/managed_agents/discovery.rs index c8a85be34a..89e7a0ad25 100644 --- a/desktop/src-tauri/src/managed_agents/discovery.rs +++ b/desktop/src-tauri/src/managed_agents/discovery.rs @@ -463,6 +463,7 @@ pub fn try_record_agent_command( fn default_agent_args(command: &str) -> Option> { match normalize_command_identity(command).as_str() { "goose" => Some(vec!["acp".to_string()]), + "opencode" => Some(vec!["acp".to_string()]), "codex" | "codex-acp" | "claude-agent-acp" | "claude-code-acp" | "claude-code" | "claudecode" | "buzz-agent" => Some(Vec::new()), _ => None,