Skip to content

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

fix(agent): remove unused import in spawn_async_subagent

Steven Enamakel06fefb655028
diff --git a/crates/openhuman-core/src/agent/hooks.rs b/crates/openhuman-core/src/agent/hooks.rs
index 1ae331b7c8..e855e4d776 100644
--- a/crates/openhuman-core/src/agent/hooks.rs
+++ b/crates/openhuman-core/src/agent/hooks.rs
@@ -287,8 +287,8 @@ pub fn fire_hooks(hooks: &[Arc<dyn PostTurnHook>], ctx: TurnContext) {
// Capture the ambient CoreContext before detaching: a bare `tokio::spawn`
// does not inherit the `CURRENT_CONTEXT` task-local, so under a scoped
// multi-tenant dispatch a detached hook would fall back to the process
- // default context — and anything context-derived inside the hook (the
- // archivist's `active_memory_guard`, goals enrichment) would read and
+ // default context — and anything context-derived inside the hook (for
+ // example a workspace-scoped store) would read and
// write another tenant's workspace. Re-entering the scope inside the task
// keeps the hook on the dispatch it belongs to; when there is no scoped
// context (the desktop's single-tenant path), `current()` already answers
diff --git a/crates/openhuman-core/src/agent/hooks_tests.rs b/crates/openhuman-core/src/agent/hooks_tests.rs
index 7408ef5794..8178717812 100644
--- a/crates/openhuman-core/src/agent/hooks_tests.rs
+++ b/crates/openhuman-core/src/agent/hooks_tests.rs
@@ -119,7 +119,7 @@ async fn fire_hooks_accepts_empty_hook_list() {
/// A detached hook task must observe the same ambient [`CoreContext`] as the
/// dispatch that fired it. A bare `tokio::spawn` loses the `CURRENT_CONTEXT`
/// task-local — under a scoped multi-tenant dispatch that meant the hook fell
-/// back to the process default context, and the archivist/goals paths behind
+/// back to the process default context, and any context-derived work behind
/// it read and wrote another tenant's workspace. `fire_hooks` now re-enters
/// the captured scope inside the spawned task; this pins that.
#[tokio::test]
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
index f2a686c7a4..7ed801ed03 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
@@ -476,7 +476,7 @@ fn a_pretty_printed_tool_call_payload_is_still_a_stub() {
#[test]
fn prose_naming_a_protocol_field_is_not_a_stub() {
- // "tool_use" alone is enough for the archivist to attempt a strip, but
+ // "tool_use" alone is enough for a stub-stripper to attempt a strip, but
// never enough to decide a sub-agent produced no answer.
assert!(!super::is_unexecuted_tool_call_stub(
"The \"tool_use\" field is how the provider reports a call."
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
index 43fae43447..5dde5cba7d 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
@@ -176,7 +176,7 @@ impl Tool for SpawnAsyncSubagentTool {
let agent_id_schema = if agent_ids.is_empty() {
json!({
"type": "string",
- "description": "Sub-agent id (e.g. archivist, planner, tools_agent)."
+ "description": "Sub-agent id (e.g. planner, critic, summarizer)."
})
} else {
json!({
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
index 6aafb5cb59..2f788123a9 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -418,7 +418,7 @@ impl OpenHumanSessionHost {
// connected Composio action (reached through `tool_search`).
//
// For an agent without `subagents` (today: welcome, critic,
- // archivist, etc.), no delegation tools are synthesised — the
+ // summarizer, etc.), no delegation tools are synthesised — the
// LLM only sees the agent's own `ToolScope::Named` entries
// from the global registry, narrowed by the visible-tool
// filter.