workflow dispatch and test fix (#15)

* workflow dispatch

* Prettier fix

* Fix cargo fmt
This commit is contained in:
Louis Knight-Webb
2025-06-30 11:55:55 +01:00
committed by GitHub
parent fa00caf967
commit 5c452e78e2
5 changed files with 25 additions and 7 deletions

View File

@@ -4,7 +4,9 @@ use tokio::io::{AsyncBufReadExt, BufReader};
use ts_rs::TS;
use uuid::Uuid;
use crate::executors::{AmpExecutor, ClaudeExecutor, EchoExecutor, GeminiExecutor, OpencodeExecutor};
use crate::executors::{
AmpExecutor, ClaudeExecutor, EchoExecutor, GeminiExecutor, OpencodeExecutor,
};
/// Context information for spawn failures to provide comprehensive error details
#[derive(Debug, Clone)]

View File

@@ -44,7 +44,10 @@ 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 \"{}\" --output-format=json", prompt.replace('"', "\\\""));
let opencode_command = format!(
"opencode -p \"{}\" --output-format=json",
prompt.replace('"', "\\\"")
);
let mut command = Command::new(shell_cmd);
command
@@ -82,7 +85,10 @@ 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 \"{}\" --output-format=json", self.prompt.replace('"', "\\\""));
let opencode_command = format!(
"opencode -p \"{}\" --output-format=json",
self.prompt.replace('"', "\\\"")
);
let mut command = Command::new(shell_cmd);
command

View File

@@ -867,7 +867,8 @@ impl TaskAttempt {
prompt,
} => {
use crate::executors::{
AmpFollowupExecutor, ClaudeFollowupExecutor, GeminiFollowupExecutor, OpencodeFollowupExecutor,
AmpFollowupExecutor, ClaudeFollowupExecutor, GeminiFollowupExecutor,
OpencodeFollowupExecutor,
};
let executor: Box<dyn crate::executor::Executor> = match config {