Skip to content

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

test(session-host): cover orphaned head resume

Steven Enamakelbdc182bf5f05
diff --git a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
index 56602237e2..fbfcab09a3 100644
--- a/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/orphaned_head_resume_tests.rs
@@ -72,12 +72,12 @@ async fn resumed_orphaned_tool_head_is_repaired_before_the_request() {
.position(|row| row.role != "system")
.expect("turn 1 wrote a non-system row");
assert!(head_end >= 2, "fixture needs the persisted system prefix");
- let mut failed = TranscriptMessage::tool("ra").with_id("call_orphan_a");
- failed.tool_failure = None;
+ let failed = TranscriptMessage::tool("ra").with_id("call_orphan_a");
let call = TranscriptToolCall {
id: "call_kept".into(),
name: "search".into(),
arguments: "{}".into(),
+ extra_content: None,
};
let stuck = [
failed,