Skip to content

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

chore(subagent): add debug logging to terminal outcome lookup

Steven Enamakel80bfc9b94384
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 ab7a3e0023..72e60b1fa0 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
@@ -582,7 +582,9 @@ impl tinyagents_orchestration::subagent::SubagentPersistence for OpenHumanPersis
&self,
key: &SubagentTaskKey,
) -> Result<Option<SubagentOutcome>, SubagentError> {
- if let Some(outcome) = self.store()?.terminal_outcome(key)? {
+ let r = self.store()?.terminal_outcome(key);
+ eprintln!("DBGR2 load_terminal -> {:?}", 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))