Skip to content

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

test(cli): include stdout and stderr in headless chat assertion

Steven Enamakelcd5f8c6303a2
diff --git a/tests/cli_agent_chat_headless_e2e.rs b/tests/cli_agent_chat_headless_e2e.rs
index 3753a217e0..2e96cf4020 100644
--- a/tests/cli_agent_chat_headless_e2e.rs
+++ b/tests/cli_agent_chat_headless_e2e.rs
@@ -301,7 +301,7 @@ fn one_shot_cli_waits_for_and_returns_its_spawned_child_result() {
probes
.iter()
.any(|(probe, streaming)| probe.contains(CHILD_PROMPT) && *streaming),
- "no actual streaming primary LLM request carried the child prompt: {probes:#?}"
+ "no actual streaming primary LLM request carried the child prompt: {probes:#?}\nstdout: {stdout}\nstderr: {stderr}"
);
let response: Value = serde_json::from_str(stdout.trim())
.unwrap_or_else(|error| panic!("CLI stdout is not JSON ({error}): {stdout}"));