Skip to content

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

fix(flows): add debug print of runtime history during workflow build

Steven Enamakelc56200c9c7a7
diff --git a/crates/openhuman-core/src/flows/ops/builder.rs b/crates/openhuman-core/src/flows/ops/builder.rs
index 662ddcd375..ad66f9618e 100644
--- a/crates/openhuman-core/src/flows/ops/builder.rs
+++ b/crates/openhuman-core/src/flows/ops/builder.rs
@@ -299,6 +299,7 @@ pub(crate) async fn flows_build_with_extra_hidden_tools(
// staring at the original silent/status-only text.
let runtime_history = agent.history();
let proposal = extract_workflow_proposal(&runtime_history);
+ for e in &runtime_history { eprintln!("DBG-HIST {}", format!("{e:?}").chars().take(1500).collect::<String>()); }
// A user-cancelled turn settles here, clean and separate from the
// error/trail-off paths below: `finalize_flow_stream` gets an `Ok(...)` (a