Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tools): handle Python exec output with no newline

Steven Enamakel71d3272d7dcd
diff --git a/crates/openhuman-core/src/tools/impl/system/python_exec.rs b/crates/openhuman-core/src/tools/impl/system/python_exec.rs
index 21087cac02..b8723253b4 100644
--- a/crates/openhuman-core/src/tools/impl/system/python_exec.rs
+++ b/crates/openhuman-core/src/tools/impl/system/python_exec.rs
@@ -331,7 +331,7 @@ impl PythonExecTool {
Ok(ToolResult::success(format!("{stdout}\n[stderr]\n{stderr}")))
}
} else {
- Ok(super::command_output::command_failure(
+ Ok(tinytools_std::command_output::command_failure(
output.status.code(),
&stdout,
&stderr,
@@ -471,8 +471,8 @@ impl PythonExecTool {
))
}
} else {
- super::command_output::command_failure(
- super::command_output::sandbox_exit_code(result.exit_code),
+ tinytools_std::command_output::command_failure(
+ tinytools_std::command_output::sandbox_exit_code(result.exit_code),
&result.stdout,
&result.stderr,
)
@@ -515,7 +515,7 @@ fn pool_outcome_to_result(
ToolResult::success(format!("{stdout}\n[stderr]\n{stderr}"))
}
} else {
- super::command_output::command_failure(outcome.exit_code, &stdout, &stderr)
+ tinytools_std::command_output::command_failure(outcome.exit_code, &stdout, &stderr)
}
}