Skip to content

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

fix(agent): handle progress update for completed tasks

Steven Enamakel9140f7a1af0a
diff --git a/crates/openhuman-core/src/agent/progress.rs b/crates/openhuman-core/src/agent/progress.rs
index 014f0c760b..c9ceb73e3e 100644
--- a/crates/openhuman-core/src/agent/progress.rs
+++ b/crates/openhuman-core/src/agent/progress.rs
@@ -74,6 +74,21 @@ pub enum AgentProgress {
/// the chat "View processing" timeline renders. `None` on success and
/// on legacy snapshots. See `crate::tools::status`.
failure: Option<crate::tools::status::ClassifiedFailure>,
+ /// Server-computed human label recomputed from the tool's OWN
+ /// [`tinytools::Tool::display_label`] using the real call arguments
+ /// (the matching `ToolCallStarted.display_label` was computed with no
+ /// arguments, since the harness start event carries none). Forwarded
+ /// on the wire as `tool_display_label` so a completed row can pick up
+ /// a label that only became knowable once the arguments existed.
+ display_label: Option<String>,
+ /// Server-computed contextual detail (e.g. "[email protected]"),
+ /// recomputed the same way from `Tool::display_detail`.
+ display_detail: Option<String>,
+ /// Structured, tool-specific result payload copied from
+ /// [`tinytools::ToolResult::metadata`] when it is a JSON object
+ /// carrying a `"kind"` discriminator (e.g. `{"kind":"web_search",...}`).
+ /// `None` for tools that don't populate metadata of that shape.
+ structured: Option<serde_json::Value>,
},
/// A sub-agent was spawned during tool execution.