Skip to content

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

chore: files changed crates/openhuman-core/src/agent/subagent_host/lifecycle.rs,crates/openhuman-cor

Steven Enamakel4065cda3fd69
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index fc10a4a63b..c8371f0c7f 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -1311,7 +1311,7 @@ fn map_lifecycle_error(error: SubagentError) -> SubagentRunError {
/// That `Usage` can only say whether a charge is present, so a present one is
/// read as charged and an absent one as unknown (it was sent as absent).
fn cost_source_of(
- charged: Option<&tinyinference_llm::usage::ChargedAmount>,
+ charged: Option<&ChargedAmount>,
) -> crate::agent::cost::CostSource {
match charged {
Some(_) => crate::agent::cost::CostSource::Charged,
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index b8fb924bed..e0b32bbe03 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -1185,7 +1185,11 @@ pub(crate) fn spawn_progress_bridge(
input_tokens,
output_tokens,
cached_input_tokens,
- cost_usd: total_usd,
+ // A live rollup of the known spend so far;
+ // the turn's final figure (or `null`)
+ // arrives on `chat_done`.
+ cost_usd: Some(total_usd),
+ cost_source: crate::agent::cost::CostSource::Charged,
context_window: 0,
context_tokens: 0,
subagents: Vec::new(),