Skip to content

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

chore: I don't see an actual diff in your message — the "Diff:" section is empty, and the stat is

Steven Enamakelc6ff0bf0ed0d
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs
index f75f50fcec..9888e6734c 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs
@@ -318,6 +318,7 @@ pub(in super::super) async fn run_subagent_via_graph(
"[subagent_host:graph] sub-agent run errored; persisting recovered transcript before returning (#4466)"
);
super::transcript::persist_failed_run(
+ &dispatch,
&workspace_dir,
transcript_stem,
agent_id,
@@ -466,7 +467,8 @@ pub(in super::super) async fn run_subagent_via_graph(
history.as_slice()
};
persist_subagent_transcript(
- &workspace_dir,
+ &dispatch,
+ &workspace_dir
transcript_stem,
agent_id,
task_id,
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
index 10206a6621..1f19f3bccf 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
@@ -45,6 +45,7 @@ pub(super) fn failed_run_history(
/// message so per-thread usage reads price the sub-agent at its own model.
#[allow(clippy::too_many_arguments)]
pub(super) fn persist_subagent_transcript(
+ ctx: &crate::core::runtime::DispatchCtx,
workspace_dir: &std::path::Path,
transcript_stem: &str,
agent_id: &str,
@@ -60,7 +61,7 @@ pub(super) fn persist_subagent_transcript(
) {
use tinyagents_session::transcript;
- let root = crate::agent::session_store::transcript_root(workspace_dir);
+ let root = crate::agent::session_store::transcript_root(ctx, workspace_dir);
let path = match transcript::resolve_keyed_transcript_path(&root, transcript_stem) {
Ok(p) => p,
Err(err) => {
@@ -142,6 +143,7 @@ pub(super) fn persist_subagent_transcript(
/// number of model calls a provider answered.
#[allow(clippy::too_many_arguments)]
pub(super) fn persist_failed_run(
+ ctx: &crate::core::runtime::DispatchCtx,
workspace_dir: &std::path::Path,
transcript_stem: &str,
agent_id: &str,
@@ -166,6 +168,7 @@ pub(super) fn persist_failed_run(
history.push(TranscriptMessage::assistant(marker.clone()));
persist_subagent_transcript(
+ ctx,
workspace_dir,
transcript_stem,
agent_id,