The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(agent): handle tool preparation errors in runtime session
Steven Enamakel0b297af30444
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex eb72d37b52..e51704de78 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -1214,8 +1214,9 @@ fn render_agent_context_status_note(};format!("## Agent context status\n\nAgent context retrieval/preparation has already run once \- for this turn in code via {sources}. Do not gather general context again. Use the prepared context below, and call only specific \- follow-up tools if a concrete missing detail is required."+ for this turn in code via {sources}. Do not gather general context again. Use the \+ prepared context below, and call only specific follow-up tools if a concrete missing \+ detail is required.")}diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rsindex 888470fbfc..f77a1015f1 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs@@ -4,10 +4,6 @@ use super::*;fn custom_delegate_is_treated_as_spawn_tool() {assert!(is_subagent_spawn_tool("spawn_subagent"));assert!(is_subagent_spawn_tool("delegate_researcher"));- // Context scouting is top-level only — never visible to sub-agents- // (incl. wildcard agents), which would otherwise scout the wrong- // parent context. See #3949 review.- assert!(is_subagent_spawn_tool("agent_prepare_context"));assert!(!is_subagent_spawn_tool("directory_resolve"));}@@ -368,7 +364,6 @@ fn dynamic_tools_keep_ordinary_actions_and_lose_spawn_tools() {"delegate_graph","spawn_worker_thread","GMAIL_SEND_EMAIL",- "agent_prepare_context",]);strip_spawn_tools_from_dynamic(&mut tools, "researcher");