Skip to content

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

fix(skills): handle tool call errors in session host

Steven Enamakelf9bd4b9ccd07
diff --git a/crates/openhuman-core/src/agent/session_host/turn/tools.rs b/crates/openhuman-core/src/agent/session_host/turn/tools.rs
index 727450d9eb..0d69e33959 100644
--- a/crates/openhuman-core/src/agent/session_host/turn/tools.rs
+++ b/crates/openhuman-core/src/agent/session_host/turn/tools.rs
@@ -335,7 +335,7 @@ impl OpenHumanSessionHost {
/// mid-session mechanism — genuinely-new skill ids (present on disk but not
/// in the prior snapshot) are parked in [`Self::pending_skill_announcement`]
/// (announced once via [`Self::announced_skills`]) and surfaced on the next
- /// user turn; `run_skill` then loads/runs them fresh from disk. Updating the
+ /// user turn; `run_workflow` then loads/runs them fresh from disk. Updating the
/// tracked slice keeps the next diff correct and feeds a *fresh* session's
/// rendered catalogue.
///
@@ -373,7 +373,7 @@ impl OpenHumanSessionHost {
.cloned()
.collect();
// Skills removed from disk since the last snapshot: retract them so the
- // model stops routing `run_skill` calls to skills that no longer exist.
+ // model stops routing `run_workflow` calls to skills that no longer exist.
// The frozen `## Installed Skills` system-prompt block cannot be updated
// mid-session (KV-cache stability), so the retraction note on the user
// turn is the only signal the model gets — mirrors the install path.
diff --git a/crates/openhuman-core/src/skills/runtime/run_machinery.rs b/crates/openhuman-core/src/skills/runtime/run_machinery.rs
index 5edd8096b5..3635063628 100644
--- a/crates/openhuman-core/src/skills/runtime/run_machinery.rs
+++ b/crates/openhuman-core/src/skills/runtime/run_machinery.rs
@@ -1,7 +1,7 @@
//! Background skill run spawning and outcome polling.
//!
//! `spawn_workflow_run_background` is re-used by both the `skills_run`
-//! JSON-RPC controller and the `run_skill` agent tool (skill chaining).
+//! JSON-RPC controller and the `run_workflow` agent tool (skill chaining).
//! `await_run_outcome` lets the model poll a spawned run's log file for a
//! terminal result without busy-waiting.
@@ -29,7 +29,7 @@ pub struct WorkflowRunStarted {
}
/// Spawn a single autonomous workflow_run as a detached `tokio::spawn`. Used by
-/// both the `openhuman.skills_run` JSON-RPC controller and the `run_skill`
+/// both the `openhuman.skills_run` JSON-RPC controller and the `run_workflow`
/// agent tool (which lets the orchestrator chain one skill into another —
/// e.g. `github-issue-crusher` → `pr-review-shepherd` once the draft PR is
/// open).
@@ -56,7 +56,7 @@ pub async fn spawn_workflow_run_background(
// ── Preflight gates ─────────────────────────────────────────────
// Run BEFORE the orchestrator is built so failures surface
- // synchronously to the caller (skills_run RPC or the run_skill
+ // synchronously to the caller (skills_run RPC or the run_workflow
// agent tool) instead of leaking through as cryptic orchestrator
// output. Today only the [github] gate exists; future gates can
// chain here.
@@ -148,7 +148,7 @@ pub async fn spawn_workflow_run_background(
// Detached: build the orchestrator Agent inside the spawn so config /
// toolchain are loaded fresh per run; the parent returns the handle
// immediately. Same flow handle_skills_run used to inline — extracted
- // so the `run_skill` agent tool can re-use it for skill chaining.
+ // so the `run_workflow` agent tool can re-use it for skill chaining.
let inherited_origin = crate::agent::turn_origin::current()
.unwrap_or(crate::agent::turn_origin::AgentTurnOrigin::Cli);
{