Skip to content

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

fix(agent_runs): include error source chain in prompt-size report failures

Steven Enamakel5f93f0bc52f8
diff --git a/crates/openhuman-core/src/agent_runs/context_breakdown.rs b/crates/openhuman-core/src/agent_runs/context_breakdown.rs
index 63626a1d52..77effc147d 100644
--- a/crates/openhuman-core/src/agent_runs/context_breakdown.rs
+++ b/crates/openhuman-core/src/agent_runs/context_breakdown.rs
@@ -141,7 +141,7 @@ async fn cached_report(
};
let report = PromptSizeReport::build(options)
.await
- .map_err(|e| format!("failed to build prompt-size report for {agent_id}: {e}"))?;
+ .map_err(|e| format!("failed to build prompt-size report for {agent_id}: {e:#}"))?;
REPORT_CACHE
.lock()