Skip to content

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

feat(agent): project tool progress into journal entries

Steven Enamakelf30fd3af3054
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 dc1939a998..1365bfade5 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection.rs
@@ -595,6 +595,7 @@ fn observation_to_progress(obs: &AgentObservation, state: &mut ReplayState) -> V
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
+ stop: None,
}]
}
@@ -604,6 +605,7 @@ fn observation_to_progress(obs: &AgentObservation, state: &mut ReplayState) -> V
} else {
vec![AgentProgress::TurnCompleted {
iterations: state.iteration,
+ stop: None,
}]
}
}
diff --git a/crates/openhuman-core/src/agent/session_host/tool_progress.rs b/crates/openhuman-core/src/agent/session_host/tool_progress.rs
index 158b80a42e..ba8a3ff401 100644
--- a/crates/openhuman-core/src/agent/session_host/tool_progress.rs
+++ b/crates/openhuman-core/src/agent/session_host/tool_progress.rs
@@ -130,7 +130,13 @@ impl ProgressReporter for TurnProgress {
async fn turn_completed(&self, iterations: u32) {
if let Some(ref sink) = self.sink {
- emit(sink, AgentProgress::TurnCompleted { iterations });
+ emit(
+ sink,
+ AgentProgress::TurnCompleted {
+ iterations,
+ stop: None,
+ },
+ );
}
}