Skip to content

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

test(json_rpc_threads_e2e): derive transcript stem via session helper

Steven Enamakel7005d73d9fe9
diff --git a/tests/json_rpc_threads_e2e.rs b/tests/json_rpc_threads_e2e.rs
index 92447d28a3..52fce4838c 100644
--- a/tests/json_rpc_threads_e2e.rs
+++ b/tests/json_rpc_threads_e2e.rs
@@ -856,7 +856,9 @@ async fn json_rpc_threads_token_usage_reads_persisted_thread_totals() {
"usage": {"input": 350, "output": 80, "cached_input": 40, "cost_usd": 0.0009},
"ts": "2026-04-11T14:35:22Z"}),
);
- let root_stem = "thr-e2e.orchestrator";
+ let root_stem = tinyagents_session::transcript::session_stem(
+ &tinyagents_session::transcript::SessionRef::scoped("thr-e2e", "orchestrator"),
+ );
std::fs::write(raw.join(format!("{root_stem}.jsonl")), jsonl)
.expect("write transcript");