Skip to content

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

fix(transcript): handle empty transcript history gracefully

Steven Enamakel23586430edd2
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript_history.rs b/crates/openhuman-core/src/agent/harness/session/transcript_history.rs
index 9262c7f64d..a76eced6ce 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript_history.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript_history.rs
@@ -161,8 +161,8 @@ use crate::agent::messages::ChatMessage;
use super::transcript::{
append_transcript_turn, find_latest_transcript_in_subdir, find_root_transcript_for_thread,
- read_transcript, resolve_keyed_transcript_path, resolve_keyed_transcript_path_in_dir,
- SessionTranscript, TranscriptMeta, TurnUsage,
+ find_root_transcript_for_thread_scoped, read_transcript, resolve_keyed_transcript_path,
+ resolve_keyed_transcript_path_in_dir, SessionTranscript, TranscriptMeta, TurnUsage,
};
/// One turn's worth of transcript write, borrowed.