The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(transcript_view): correct test module structure for ordering tests
Steven Enamakelc543058f5475
diff --git a/crates/openhuman-core/src/threads/transcript_view/transcript_ordering_tests.rs b/crates/openhuman-core/src/threads/transcript_view/transcript_ordering_tests.rsindex 193f13061b..1e83760e7e 100644--- a/crates/openhuman-core/src/threads/transcript_view/transcript_ordering_tests.rs+++ b/crates/openhuman-core/src/threads/transcript_view/transcript_ordering_tests.rs@@ -548,3 +548,12 @@ fn generation_chain_projects_in_order_without_duplicating_retained_rows() {DisplayItem::Compaction { kept_count, .. } if *kept_count == 2)));}++#[test]+fn get_page_missing_thread_is_empty_not_error() {+ let dir = TempDir::new().unwrap();+ let page = super::get_page(dir.path(), "no_such_thread", None, Some(super::DEFAULT_LIMIT));+ assert!(!page.has_transcript);+ assert_eq!(page.total, 0);+ assert!(page.items.is_empty());+}diff --git a/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs b/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rsindex 4854bf932e..b9b917f60c 100644--- a/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs+++ b/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs@@ -292,9 +292,7 @@ fn subagent_file_projects_as_nested_item() {_ => None,}).expect("subagent item present");- // Unique per run (the stem suffix when no task id is recorded), never the- // agent name, which repeats across runs.- assert_eq!(subagent.0, "100_coder");+ assert_eq!(subagent.0, "100_coder", "unique run id, not the agent name");assert!(subagent.1.iter().any(|i| matches!(i, DisplayItem::AssistantMessage { content, .. } if content == "sub work done")));@@ -700,10 +698,8 @@ fn subagent_anchors_to_parent_turn_by_spawn_timestamp() {let root_refs: Vec<&str> = root_body.iter().map(String::as_str).collect();write_raw(dir.path(), root_stem, thread_id, &root_refs);- // Sub-agent stems encode the spawn unix timestamp. A turn's rows carry- // its *commit* time, so turn 1 ran up to 1_000_000 and turn 2 from then- // to 2_000_000: coder spawned during turn 1 (999_950), planner during- // turn 2 (1_000_050 — after turn 1 committed).+ // Stems encode the spawn time; rows carry their turn's *commit* time, so+ // coder (999_950) ran in turn 1 and planner (1_000_050) in turn 2.write_raw(dir.path(),&format!("{root_stem}__999950_coder"),@@ -747,12 +743,3 @@ fn subagent_anchors_to_parent_turn_by_spawn_timestamp() {"each sub-agent anchors to the turn active at its spawn time");}--#[test]-fn get_page_missing_thread_is_empty_not_error() {- let dir = TempDir::new().unwrap();- let page = get_page(dir.path(), "no_such_thread", None, Some(DEFAULT_LIMIT));- assert!(!page.has_transcript);- assert_eq!(page.total, 0);- assert!(page.items.is_empty());-}