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
test(web_chat): seed legacy transcripts through the workspace store
Steven Enamakel383a23739133
diff --git a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs b/crates/openhuman-core/src/web_chat/session_checkout_tests.rsindex cf9698f596..c00066163e 100644--- a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs+++ b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs@@ -40,10 +40,7 @@ pub(super) fn unique_thread(tag: &str) -> String {/// A root transcript for `thread_id` with the given prose rows, as the/// session persistence writes one.-fn write_thread_transcript(workspace_dir: &Path, stem: &str, thread_id: &str, rows: &[&str]) {- let path = workspace_dir- .join("session_raw")- .join(format!("{stem}.jsonl"));+fn seed_legacy_thread_transcript(workspace_dir: &Path, stem: &str, thread_id: &str, rows: &[&str]) {let messages: Vec<_> = rows.iter().enumerate()@@ -75,7 +72,14 @@ fn write_thread_transcript(workspace_dir: &Path, stem: &str, thread_id: &str, rothread_id: Some(thread_id.to_string()),task_id: None,};- crate::util::classic_transcript_fixture::write_classic(&path, &messages, &meta);+ let history = crate::storage::sessions::workspace_transcripts("orchestrator", workspace_dir)+ .open_stem(stem, meta)+ .expect("open the legacy root in the workspace transcript store");+ for message in messages {+ history+ .append(message)+ .expect("persist the legacy root message");+ }}fn prose(history: &[TranscriptEntry]) -> Vec<String> {@@ -118,7 +122,7 @@ async fn checkout_cold_boots_from_the_thread_transcript_and_checkin_keeps_it_warlet tmp = tempfile::tempdir().unwrap();let config = test_config(&tmp);let thread_id = unique_thread("cold");- write_thread_transcript(+ seed_legacy_thread_transcript(&config.workspace_dir,"1789918422_orchestrator_thread",&thread_id,