Skip to content

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

fix(agent): restore turn runner after accidental deletion

Steven Enamakel97899d9d907d
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs b/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs
index b0c222c87f..1ae80f730d 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_runner.rs
@@ -236,6 +236,11 @@ async fn run_turn_via_tinyagents_inner(
// the exact same `Arc`-shared instances, so retain only the cheap Arc clone
// for a hosted invocation (never clone the tools themselves).
let hosted_tool_sets = hosted_root.as_ref().map(|_| tool_sets.clone());
+ // Retained for the event bridge (cheap `Arc` clones — never the tools
+ // themselves) so it can resolve a live `&dyn Tool` by name and call the
+ // tool's OWN `display_label`/`display_detail` instead of only ever
+ // guessing from the bare name (issue: tool-call presentation).
+ let bridge_tool_sets = tool_sets.clone();
// The turn's crate `ChatModel` set (`turn_models`) and the provider telemetry
// id are built by the caller via `build_turn_models` — the seam entry is
// crate-native and no longer names `Provider` (issue #4249, Phase 5). The