Skip to content

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

fix(subagent_host): log terminal persistence result before propagating errors

Steven Enamakel571916bd2c8e
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
index 287179aa9f..7433c55169 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
@@ -704,13 +704,16 @@ impl tinyagents_orchestration::subagent::SubagentPersistence for OpenHumanPersis
serde_json::json!(host.elapsed.as_nanos().min(u64::MAX as u128) as u64),
);
}
+ eprintln!("DBGR record_terminal {key:?}");
let disposition = tinyagents_orchestration::subagent::SubagentPersistence::record_terminal(
&self.open_store(true)?,
key,
&durable_outcome,
replaces,
)
- .await?;
+ .await;
+ eprintln!("DBGR result {disposition:?}");
+ let disposition = disposition?;
let host_disposition = match disposition {
SubagentTerminalPersistenceDisposition::Inserted => {
tinyagents_orchestration::subagent::SubagentPersistenceDisposition::TerminalInserted