Skip to content

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

test(subagent_sessions): assert unfiltered parent listing returns the session

Steven Enamakelc54ebfdeda80
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port_tests.rs
index dc96f07c00..ff140cc0f0 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port_tests.rs
@@ -44,11 +44,11 @@ async fn old_rows_without_checkpoint_identity_remain_readable_without_fabricated
.await
.unwrap()
.is_empty());
- assert!(port
- .list_for_parent("owner", Some("other-thread"))
- .await
- .unwrap()
- .is_empty());
+ assert_eq!(
+ port.list_for_parent("owner", None).await.unwrap().len(),
+ 1,
+ "Tiny Jobs passes no thread filter, so the port supplies its authenticated thread"
+ );
assert!(port.get("legacy-session").await.unwrap().is_some());
let other_thread = OpenHumanTinySubagentSessionStore::new(
workspace.path().to_path_buf(),