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/ops/graph_tests.rs,vendor/tinyage

Steven Enamakel8f26537957a2
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
index d6b7389339..fb598b5334 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
@@ -43,6 +43,29 @@ fn read_stem(
.expect("the child transcript was written")
}
+#[test]
+fn a_subagent_writes_to_its_turn_trees_store_else_its_contexts() {
+ let workspace = tempfile::tempdir().unwrap();
+ let tree = crate::agent::session_store::transcripts_or_files("tree-key", workspace.path());
+ let mut run_context = crate::agent::tinyagents::host::OpenHumanRunContext::new();
+ run_context.transcripts = Some(tree.clone());
+ let chosen = super::transcript::subagent_transcripts(&run_context, workspace.path());
+ assert!(Arc::ptr_eq(&chosen, &tree), "the root session's store is used as is");
+
+ // No session handed a store over: the default agent's store of the run's
+ // (here unbound, desktop) tenant.
+ let unbound = crate::agent::tinyagents::host::OpenHumanRunContext::new();
+ let fallback = super::transcript::subagent_transcripts(&unbound, workspace.path());
+ assert_eq!(
+ fallback.destination_key(),
+ crate::agent::session_store::transcripts_or_files(
+ crate::agent::session_store::DEFAULT_AGENT,
+ workspace.path()
+ )
+ .destination_key()
+ );
+}
+
#[test]
fn subagent_transcript_keeps_cumulative_spend_separate_from_unknown_last_call() {
let workspace = tempfile::tempdir().unwrap();
diff --git a/vendor/tinyagents b/vendor/tinyagents
index ae19179d9d..629f11d7ff 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit ae19179d9dce4397c620798323efb2b93526c283
+Subproject commit 629f11d7ffcacd5dd6c8f562192a8ba46af684c9