Skip to content

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

fix: correct test assertions for thread editing and web chat presentation

Steven Enamakel599e400782b8
diff --git a/crates/openhuman-core/src/threads/ops/edit_tests.rs b/crates/openhuman-core/src/threads/ops/edit_tests.rs
index 6987d47fa1..b685bbce8a 100644
--- a/crates/openhuman-core/src/threads/ops/edit_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/edit_tests.rs
@@ -206,7 +206,3 @@ fn truncate_transcript_for_regenerate_returns_none_when_no_turn_exists() {
truncate_transcript_for_regenerate(dir.path(), thread_id, None).expect("truncate");
assert_eq!(result, None, "no user/assistant turn to regenerate");
}
-
-#[cfg(test)]
-#[path = "edit_turn_state_tests.rs"]
-mod turn_state_and_reply_lookup;
diff --git a/crates/openhuman-core/src/web_chat/presentation_tests.rs b/crates/openhuman-core/src/web_chat/presentation_tests.rs
index eb9c624d2c..362ccca0bb 100644
--- a/crates/openhuman-core/src/web_chat/presentation_tests.rs
+++ b/crates/openhuman-core/src/web_chat/presentation_tests.rs
@@ -328,7 +328,7 @@ async fn chat_done_carries_timing_when_a_snapshot_is_supplied() {
context_window: 8000,
subagents: Vec::new(),
};
- let timing = super::turn_timing::TurnTimingSnapshot {
+ let timing = crate::web_chat::turn_timing::TurnTimingSnapshot {
first_token_ms: Some(120),
first_tool_ms: None,
total_ms: Some(2000),