diff --git a/host/src/harness/environment.rs b/host/src/harness/environment.rs index db88854..709c4c3 100644 --- a/host/src/harness/environment.rs +++ b/host/src/harness/environment.rs @@ -96,7 +96,7 @@ pub fn op_exec( }; let (sender, receiver) = tokio::sync::mpsc::unbounded_channel(); let task = tokio::spawn(async move { - let result = exec.exec(command, Options { cwd, env: env.unwrap_or_default(), conversations: conversations.unwrap_or_else(|| conversation.into_iter().collect()), timeout: timeout.map(std::time::Duration::from_secs_f64) }, &mut |stream, bytes| { let _ = sender.send(json!({"stream": if stream == Stream::Stdout {"stdout"} else {"stderr"}, "bytes": bytes})); }).await; + let result = exec.exec(command, Options { cwd, env: env.unwrap_or_default(), conversations: conversations.unwrap_or_else(|| conversation.into_iter().collect()), timeout: timeout.map(std::time::Duration::from_secs_f64), tool_call: None }, &mut |stream, bytes| { let _ = sender.send(json!({"stream": if stream == Stream::Stdout {"stdout"} else {"stderr"}, "bytes": bytes})); }).await; let _ = sender.send(match result { Ok(exit) => json!({"exitCode": exit}), Err(e) => json!({"error": e.to_string()}),