From b5b61912aeaa9c53ea62d97467625b0531ffdec3 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Fri, 27 Jun 2025 22:09:15 +0100 Subject: [PATCH] Task attempt 2c218bb9-0865-4b9e-8ecb-0d60ed20ca19 - Final changes --- backend/src/executors/opencode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/executors/opencode.rs b/backend/src/executors/opencode.rs index dea666a6..9403755f 100644 --- a/backend/src/executors/opencode.rs +++ b/backend/src/executors/opencode.rs @@ -44,7 +44,7 @@ impl Executor for OpencodeExecutor { // Use shell command for cross-platform compatibility let (shell_cmd, shell_arg) = get_shell_command(); - let opencode_command = format!("opencode -p \"{}\"", prompt.replace('"', "\\\"")); + let opencode_command = format!("opencode -p \"{}\" --output-format=json", prompt.replace('"', "\\\"")); let mut command = Command::new(shell_cmd); command @@ -82,7 +82,7 @@ impl Executor for OpencodeFollowupExecutor { // Use shell command for cross-platform compatibility let (shell_cmd, shell_arg) = get_shell_command(); - let opencode_command = format!("opencode -p \"{}\"", self.prompt.replace('"', "\\\"")); + let opencode_command = format!("opencode -p \"{}\" --output-format=json", self.prompt.replace('"', "\\\"")); let mut command = Command::new(shell_cmd); command