Task attempt 2c218bb9-0865-4b9e-8ecb-0d60ed20ca19 - Final changes

This commit is contained in:
Louis Knight-Webb
2025-06-27 22:09:15 +01:00
parent 659233e887
commit b5b61912ae

View File

@@ -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