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
docs(core): update MCP supervisor and unauthorized error comments
Steven Enamakel814b934c1323
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex e2fdf3a062..00868600ed 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -1032,7 +1032,7 @@ pub enum DomainEvent {// ── MCP reconnect supervisor (#5931) ───────────────────────────────//// Published by `mcp::registry::supervisor_events` from the report- // `tinymcp::Supervisor::tick` hands back each minute. They are what puts+ // TinyMCP's module-owned supervisor reports each minute. They are what puts// a probe outcome on the developer Event Log, and what the notification// bridge reads to tell the user about a server that stays down. An// answered probe is deliberately not an event: one row per server perdiff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rsindex 53ae284144..1f3f87e062 100644--- a/crates/openhuman-core/src/core/observability.rs+++ b/crates/openhuman-core/src/core/observability.rs@@ -326,9 +326,8 @@ pub enum ExpectedErrorKind {/// lost-registration defect still reaches Sentry.ApprovalNoPendingRace,/// A remote MCP server answered the connect handshake with HTTP 401 — it- /// needs OAuth sign-in, not a code fix. `McpHttpClient::read_response`- /// (`crates/openhuman-core/src/mcp/http_client/client.rs`) raises the typed- /// `tinymcp::Error::Unauthorized`, and+ /// needs OAuth sign-in, not a code fix. TinyMCP returns the typed+ /// unauthorized outcome over `tinymcp-bus`, and/// `mcp::registry::connections::connect` already classifies it and stores a/// `needs_auth` flag so the UI prompts the user to authenticate (the/// `needs_auth` UX shipped in #3733 / #3719). But `mcp_clients_connect`@@ -1014,15 +1013,15 @@ pub fn is_session_expired_message(msg: &str) -> bool {/// Detect a remote MCP server's connect-time 401 — the user must sign in to/// that server (OAuth), not a code defect. Anchored on the canonical-/// `tinymcp::Error::Unauthorized` `Display`-/// body, which renders as `"MCP unauthorized for \`<endpoint>\` (HTTP 401…)"`.+/// TinyMCP unauthorized error text, which renders as+/// `"mcp unauthorized for \`<endpoint>\` (HTTP 401…)"`.////// Conjunctive match — both anchors must hit (input already lower-cased):///-/// 1. `"mcp unauthorized for "` — the typed-error prefix. Scopes the match to+/// 1. `"mcp unauthorized for "` — the stable module error prefix. Scopes the match to/// the MCP transport's own 401 so an unrelated "unauthorized" / "401" from/// another domain cannot borrow this demotion.-/// 2. `"(http 401"` — the parenthesised status the `Display` impl always emits+/// 2. `"(http 401"` — the parenthesised status the module message always emits/// (with or without the trailing `resource metadata:` discovery hint).////// `connections::connect` already classifies this and stores a `needs_auth`