Skip to content

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

fix(transcript): handle missing session transcript gracefully

Steven Enamakelf1ab01f99eff
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript.rs b/crates/openhuman-core/src/agent/harness/session/transcript.rs
index 3d78e4a888..5b3799bb33 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript.rs
@@ -117,7 +117,9 @@ mod types;
mod writer;
pub use legacy_md::read_transcript_legacy_md;
-pub(crate) use metadata::{attach_tool_failure_metadata, attach_turn_usage_metadata};
+pub(crate) use metadata::attach_tool_failure_metadata;
+#[cfg(test)]
+pub(crate) use metadata::attach_turn_usage_metadata;
pub use paths::{
find_latest_transcript_in_subdir, resolve_keyed_transcript_path,
resolve_keyed_transcript_path_in_dir,