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 outcome lookup result

Steven Enamakel234e92f80e6d
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 7433c55169..ab7a3e0023 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
@@ -370,7 +370,9 @@ impl OpenHumanPersistence {
&self,
key: &SubagentTaskKey,
) -> Result<Option<SubagentOutcome>, SubagentError> {
- if let Some(outcome) = self.store()?.terminal_outcome(key)? {
+ let r = self.store()?.terminal_outcome(key);
+ eprintln!("DBGR load_terminal {key:?} -> {:?}", r.as_ref().map(|o| o.is_some()));
+ if let Some(outcome) = r? {
return Ok(Some(outcome));
}
Ok(self.read_terminal_record(key)?.map(|record| record.outcome))