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(mcp): honour an embedder's workspace, drop a retry time the tick cannot keep, unsqueeze the detail line
M3gA-Mind33ea52a799af
diff --git a/app/src/components/settings/panels/EventLogPanel.tsx b/app/src/components/settings/panels/EventLogPanel.tsxindex d4347157fd..08b135aec9 100644--- a/app/src/components/settings/panels/EventLogPanel.tsx+++ b/app/src/components/settings/panels/EventLogPanel.tsx@@ -327,7 +327,12 @@ const EventLogPanel = () => {{entry.agent}</span>)}- <span className="text-xs text-content truncate">{entry.event}</span>+ {/* `min-w-0` is load-bearing: a flex item with `truncate` cannot+ shrink below min-content without it, so this span would hold its+ full width and the detail span beside it (which does set+ `min-w-0`) would absorb every pixel of overflow and render as a+ few characters — defeating the column it was added for. */}+ <span className="text-xs text-content truncate min-w-0">{entry.event}</span>{entry.detail && (<spanclassName="text-[10px] text-content-muted truncate min-w-0 pt-0.5"diff --git a/app/test/playwright/specs/settings-theme-import-validation.spec.ts b/app/test/playwright/specs/settings-theme-import-validation.spec.tsindex 9679e37ded..89263c19a0 100644--- a/app/test/playwright/specs/settings-theme-import-validation.spec.ts+++ b/app/test/playwright/specs/settings-theme-import-validation.spec.ts@@ -90,11 +90,7 @@ test.describe('Theme Studio — import validation', () => {}test('still accepts a theme carrying a single colour token', async ({ page }) => {- const valid = JSON.stringify({- name: 'Minimal',- isDark: false,- colors: { surface: '1 2 3' },- });+ const valid = JSON.stringify({ name: 'Minimal', isDark: false, colors: { surface: '1 2 3' } });await attemptImport(page, valid);diff --git a/src/openhuman/config/schema/load/dirs.rs b/src/openhuman/config/schema/load/dirs.rsindex ff06a434bf..234432a1cc 100644--- a/src/openhuman/config/schema/load/dirs.rs+++ b/src/openhuman/config/schema/load/dirs.rs@@ -313,6 +313,18 @@ pub(crate) async fn resolve_runtime_config_dirs(/// asks only for the handful of workspace-bound events a supervisor tick/// produces, and returns before calling it for everything else.pub async fn active_workspace_dir() -> Result<PathBuf> {+ // An embedding host that supplied its own `Config` is authoritative, and+ // `config::ops::load_config_with_timeout` already short-circuits on it for+ // exactly this reason. Resolving from disk/env here instead would answer+ // with the process-global workspace, which for an embedder is a directory+ // it never chose — and the one caller of this function compares the answer+ // against an event's `workspace_dir` to decide whether to announce. A+ // mismatch there is not a wrong banner, it is *no* banner, permanently,+ // with only a `debug!` line to say so. See AGENTS.md, "CoreBuilder::config+ // alone configures boot and nothing else".+ if let Some(config) = crate::core::runtime::context::CoreContext::current_embedder_config() {+ return Ok(config.workspace_dir);+ }let (default_openhuman_dir, default_workspace_dir) = default_config_and_workspace_dirs()?;let (_, workspace_dir, source) =resolve_runtime_config_dirs(&default_openhuman_dir, &default_workspace_dir).await?;diff --git a/src/openhuman/desktop/notifications/bus.rs b/src/openhuman/desktop/notifications/bus.rsindex 2ee662ede3..1bede92c21 100644--- a/src/openhuman/desktop/notifications/bus.rs+++ b/src/openhuman/desktop/notifications/bus.rs@@ -347,15 +347,23 @@ pub fn event_to_notification(event: &DomainEvent) -> Option<CoreNotificationEvenqualified_name,error,failures,- retry_in_secs,..} if *failures == 1 => Some(CoreNotificationEvent {id: format!("mcp-unavailable:{}:{}", server_id, ts),category: CoreNotificationCategory::System,title: "MCP server unavailable".into(),+ // Deliberately no "retrying in Ns": `retry_in_secs` is tinymcp's+ // backoff (5s for the first failure) and is faithful on the event,+ // but this host drives `Supervisor::tick` from its own 60s+ // interval, so the backoff only decides *eligibility* on the next+ // tick. Every sub-tick step (5/10/20/40s) would be under-reported+ // to the user, who then watches a "5s" banner sit there for a+ // minute. The exact backoff is still in the Event Log row via+ // `DomainEvent::log_detail`, where a developer can read it against+ // the tick interval; a banner cannot carry that caveat.body: format!("{qualified_name} stopped answering, so its tools are unavailable until it \- reconnects (retrying in {retry_in_secs}s). {}",+ reconnects. It retries automatically. {}",error.chars().take(120).collect::<String>()),deep_link: Some("/connections?tab=mcp".into()),diff --git a/src/openhuman/desktop/notifications/bus_tests_2_tests.rs b/src/openhuman/desktop/notifications/bus_tests_2_tests.rsindex d19fa21981..01c6bec5ab 100644--- a/src/openhuman/desktop/notifications/bus_tests_2_tests.rs+++ b/src/openhuman/desktop/notifications/bus_tests_2_tests.rs@@ -195,7 +195,13 @@ fn mcp_first_failed_reconnect_tells_the_user_tools_are_unavailable() {assert_eq!(n.category, CoreNotificationCategory::System);assert_eq!(n.title, "MCP server unavailable");assert!(n.body.contains("ac.inference.sh/mcp"), "{}", n.body);- assert!(n.body.contains("retrying in 5s"), "{}", n.body);+ // Deliberately NOT "retrying in 5s". `retry_in_secs` is tinymcp's backoff+ // and is faithful on the event, but this host drives `Supervisor::tick`+ // from its own 60s interval, so the backoff only decides eligibility on the+ // next tick — a "5s" banner sits there for a minute. Pinned as an absence+ // as well as a presence, so the false precision cannot come back.+ assert!(!n.body.contains("retrying in"), "{}", n.body);+ assert!(n.body.contains("retries automatically"), "{}", n.body);assert!(n.body.contains("connection reset"), "{}", n.body);assert_eq!(n.deep_link.as_deref(), Some("/connections?tab=mcp"));assert!(n.id.starts_with("mcp-unavailable:srv-1:"));