Skip to content

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

test(viewport): add thread and request ids to event fixtures

Steven Enamakelc24d92afaba4
diff --git a/crates/openhuman-tui/src/viewport_tests.rs b/crates/openhuman-tui/src/viewport_tests.rs
index d4a819461a..316fc03b5e 100644
--- a/crates/openhuman-tui/src/viewport_tests.rs
+++ b/crates/openhuman-tui/src/viewport_tests.rs
@@ -65,7 +65,8 @@ fn indexed_rows_equal_full_wrapping_after_updates_resizes_and_expired_journal()
let mut state = TranscriptState::new("test");
state.apply_event(
&serde_json::from_value(serde_json::json!({
- "event":"tool_call","client_id":"test","tool_call_id":"first","tool_name":"tool"
+ "event":"tool_call","client_id":"test","thread_id":"thread-1",
+ "request_id":"turn","tool_call_id":"first","tool_name":"tool"
}))
.unwrap(),
);
@@ -80,7 +81,8 @@ fn indexed_rows_equal_full_wrapping_after_updates_resizes_and_expired_journal()
if step == 4 {
state.apply_event(
&serde_json::from_value(serde_json::json!({
- "event":"tool_result","client_id":"test","tool_call_id":"first",
+ "event":"tool_result","client_id":"test","thread_id":"thread-1",
+ "request_id":"turn","tool_call_id":"first",
"output":"a\nb\nc","success":true
}))
.unwrap(),