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(session_host): handle missing announcement notes gracefully
Steven Enamakel7f0779eef36a
diff --git a/crates/openhuman-core/src/agent/session_host/announcement_notes.rs b/crates/openhuman-core/src/agent/session_host/announcement_notes.rsindex fdb7e32667..5b3822f82b 100644--- a/crates/openhuman-core/src/agent/session_host/announcement_notes.rs+++ b/crates/openhuman-core/src/agent/session_host/announcement_notes.rs@@ -37,7 +37,7 @@ pub(super) fn skill_announcement_note(skill_ids: &[String]) -> Option<String> {pub(super) fn skill_retraction_note(skill_ids: &[String]) -> Option<String> {(!skill_ids.is_empty()).then(|| format!("[skills retracted] These skill(s) were uninstalled during this conversation and are no longer available: {}. \-Do not attempt to run them with `run_skill` — they have been removed. Tell the user to reinstall if they want to use them again.",+Do not attempt to run them with `run_workflow` — they have been removed. Tell the user to reinstall if they want to use them again.",skill_ids.join(", ")))}diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rsindex fea4edc14c..6d5c80825f 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs@@ -443,8 +443,9 @@ fn availability_notes_are_status_not_instructions() {}assert!(notes[0].contains("tool_search") && notes[0].contains("gmail"));assert!(!notes[0].contains("delegate_to_integrations_agent"));- assert!(notes[1].contains("use_mcp_server") && notes[1].contains("filesystem, github"));- assert!(notes[2].contains("run_skill") && notes[2].contains("deploy"));+ assert!(notes[1].contains("tool_search") && notes[1].contains("filesystem, github"));+ assert!(!notes[1].contains("use_mcp_server"));+ assert!(notes[2].contains("run_workflow") && notes[2].contains("deploy"));assert!(integration_announcement_note(&[]).is_none());assert!(mcp_announcement_note(&[]).is_none());assert!(skill_announcement_note(&[]).is_none());diff --git a/crates/openhuman-core/src/agent/session_host/types.rs b/crates/openhuman-core/src/agent/session_host/types.rsindex 39c81d9a48..dae4dd5fb2 100644--- a/crates/openhuman-core/src/agent/session_host/types.rs+++ b/crates/openhuman-core/src/agent/session_host/types.rs@@ -443,9 +443,10 @@ pub struct OpenHumanSessionHost {pub(super) announced_mcp_servers: std::collections::HashSet<String>,/// MCP servers that connected mid-session and still need announcing on the/// next user message. The MCP analogue of- /// [`Self::pending_integration_announcement`]. `use_mcp_server` is a single- /// static delegate (no per-server schema to refresh), so this prose note on- /// the user turn is the entire mid-session-connect mechanism for MCP. The+ /// [`Self::pending_integration_announcement`]. Connected servers' tools are+ /// `Deferred` registrations found through `tool_search` (no per-server+ /// schema on the wire to refresh), so this prose note on the user turn is+ /// the entire mid-session-connect mechanism for MCP. The/// note rides the user turn (NOT the system prompt) so the KV-cache prefix/// stays byte-identical. Order-preserving + de-duped on insert.pub(super) pending_mcp_announcement: Vec<String>,diff --git a/crates/openhuman-core/src/skills/search.rs b/crates/openhuman-core/src/skills/search.rsindex ce677c63e5..91f74f1656 100644--- a/crates/openhuman-core/src/skills/search.rs+++ b/crates/openhuman-core/src/skills/search.rs@@ -162,7 +162,7 @@ impl Tool for SkillSearchTool {best-matching skills with their id and description. Prefer this over \`list_workflows` when you know the capability you want but not the \name — it returns only what matched. Then `describe_workflow` for the \- details, or `run_skill` to run it. Searches only what is installed \+ details, or `run_workflow` to run it. Searches only what is installed \locally; use `skill_registry_search` to find skills to install."}