Skip to content

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

refactor(agent): extract journal projection helpers

Steven Enamakeldcf265f2aa3c
diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs
index 4dc8e848f6..c6ae0760cf 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs
@@ -345,8 +345,8 @@ fn observation_to_progress(obs: &AgentObservation, state: &mut ReplayState) -> V
// The journal has no live tool registry to recompute a
// real label/detail from, and no `ToolResult.metadata` to
// replay structured payloads from.
- display_label: display_label.clone(),
- display_detail: display_detail.clone(),
+ display_label,
+ display_detail,
structured: None,
}],
None => vec![AgentProgress::ToolCallCompleted {
@@ -359,8 +359,8 @@ fn observation_to_progress(obs: &AgentObservation, state: &mut ReplayState) -> V
elapsed_ms: duration_ms.unwrap_or(0),
iteration: state.iteration,
failure,
- display_label: display_label.clone(),
- display_detail: display_detail.clone(),
+ display_label,
+ display_detail,
structured: None,
}],
}