The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Commits on main
fix(brain): warn on a failed refresh instead of showing stale data silently\n\nThe error branch was reachable only while `graph` was null, and the catch in\n`load()` never clears `graph`. So the FIRST load failing showed an alert, but\nevery later failure set `error` behind an already-truthy `graph` and rendered\nnothing: the user kept reading a graph that had silently stopped being current.\n\nThe product choice, since the issue asks for one: keep the stale graph and warn\nabove it, rather than clearing `graph` on error. Clearing would also have made\nthe alert appear, and it is the worse option — the graph is expensive to\nrebuild and remains useful when a refresh blips, so discarding it turns a\ntransient failure into total data loss on screen. The unacceptable option was\nthe third one, which is what shipped: stale data with no indication at all.\n\nThe two states are now distinct components rather than two branches of one\nternary, because they say different things: `warning` means "what you see is\nold", `destructive` means "there is nothing to see". Both are in\n`ASSERTIVE_VARIANTS` (Alert.tsx:62) so both announce.\n\nAdds `brain.refreshError` to en plus all 13 locales with real translations, no\nem dashes.\n\nSCOPE — I checked whether this defect has siblings, and it does not. Five other\ncomponents share the `) : error ? (` shape (GoalsPanel, VaultHealthChecklist,\nAgentEditorToolsPicker, AgentsPanel, ApprovalHistoryPanel). None has the bug:\nevery one of them tests `error` BEFORE its data, so a failed reload surfaces.\nBrain was the only place the error branch sat behind truthy data. The class has\nexactly one member.\n\nTESTS — `Brain.errorRecovery.test.tsx` deliberately characterised this bug and\nits own comment said it "must be rewritten to assert whichever was chosen" once\nfixed. Done: the test that proved the swallow now proves the notification, and\nasserts BOTH halves (warning present AND graph retained), since clearing the\ngraph would satisfy a warning-only assertion. Added the cold-load case so a fix\nrouting every failure through the stale-data warning would fail.\n\nAssertions read `data-variant` rather than `role="alert"`, because warning and\ndestructive both carry that role and an assertion that cannot tell them apart\nwould pass on either branch.\n\nThe fix also makes an existing assertion falsifiable for the first time. The\nrecovery test's comment recorded that it could not prove `setError(null)` ran,\nsince a stale `error` behind a truthy `graph` was invisible. It is visible now,\nso that test gained a real check for it.\n\nNOT VERIFIED BY EXECUTION: local builds and test runs are prohibited under a\ncurrent standing rule, so none of this was run. Verified by reading\nBrain.tsx:244-255 and :108-112, Alert.tsx:62 and :85, and the five sibling call\nsites. CI is the check.\n\n## Related\n\nCloses #5895\n M3gA-Mind committed 3 months ago
cb9475f fix(sidebar): lift the resize rail above the content card so its hit area works\n\nHalf the rail's widened pointer target never received events. Aiming at what\nlooks like the grab area did nothing.\n\nIt is a stacking problem, not a sizing one, and the widths were already correct.\n`SidebarRail` is `w-0` with an absolutely-positioned hit area that overhangs it\nby 4px on each side (`-left-1 -right-1`). That child carried `z-10`. So does\n`SidebarInset`, the content card — `relative z-10` at Sidebar.tsx:408 — and\n`RootShellLayout` renders the card AFTER the rail. Equal z-index means DOM order\ndecides, so the card painted over the overhanging half and `elementFromPoint` at\nthe rail's own centre returned the content viewport.\n\nMeasured before the fix, at a 224px sidebar edge with the hit area spanning\nx=220..228:\n\n x=221 -> SPAN (the rail) x=224 -> DIV (content viewport)\n x=222 -> SPAN (the rail) x=227 -> DIV (content viewport)\n\nSo the 8px target the widening was meant to buy was 4px, and the dead half was\nthe one the cursor naturally lands on when the resize cursor appears.\n\nRaising `SidebarRail` itself to `z-20` rather than the hit-area child, because\nthe 1px seam indicator is the same shape of problem: it sits at the rail's\n`left-0` with no z-index of its own, and `SidebarInset` butts against the\nsidebar with no left margin, so it was under the card too. Lifting the rail\nlifts both children together. `SidebarInset`'s own `after:z-20` shadow cannot\ncompete — `relative z-10` makes it a stacking context, so that pseudo-element is\nscoped inside it.\n\nThe clamp is inert above the card: the rail is 8px of transparent hit area plus\na 1px seam that only paints on hover/focus, so nothing new is drawn over the\ncontent.\n\nTest: app-shell-sidebar-resize.spec.ts gains a regression guard that samples\nfive x positions across the hit area's real box and asserts every one resolves\ninside the rail. It samples rather than probing once because the failure was\nprecisely that one half worked and the other did not. The file's header comment\nrecorded the dead half as a standing caveat; that is now corrected to describe\nthe fix.\n\nNOT EXECUTED. Local builds and test runs are prohibited in this phase, so this\nis reasoned from source: Sidebar.tsx:330 (rail), :336 (hit area), :408\n(SidebarInset), RootShellLayout.tsx:256-277 (render order). Prettier clean, tsc\nreports no errors in the touched files. CI is the check.\n\n## Related\n\nCloses #5906\n M3gA-Mind committed 3 months ago
77f2329 fix(app): carry the deep link across both hops of the /webhooks redirect\n\n`/webhooks?tab=inbound#delivery-3` arrived at a bare `/connections`.\n\nThe two-hop path is intended and unchanged — the Integrations settings section\nwas retired and the OAuth grid moved to Connections:\n\n /webhooks -> /settings/integrations AppRoutes.tsx:243\n /settings/integrations -> /connections settingsRouteElements.tsx:129\n\nBOTH hops used a bare `<Navigate>`, which discards `search` and `hash`. Fixing\nonly the first would not have fixed the bug: the fragment would have reached\n`/settings/integrations` and been dropped by the second. The issue names only\nthe first hop; the second is the same defect at the sibling call site.\n\nReuses `ForwardSearch` from #5924 rather than inventing a second mechanism. It\nwas local to `AppRoutes.tsx` and the settings route table cannot import from\nthere — `AppRoutes` -> `Settings` -> `settingsRouteElements` already, so that\nimport would be circular — so it is lifted to\n`components/routing/ForwardSearch.tsx` unchanged and both call sites use it.\n\nDeliberately NOT applied to every other bare `<Navigate>` redirect. Where the\ndestination already carries a query — `/channels` -> `/connections?tab=messaging`\n— appending the incoming `search` yields a second `?` and a malformed URL. Those\nneed a merge, not a concatenation, and that is a different change. The new\ncomponent's doc comment says so.\n\n`useLocation` is dropped from the `AppRoutes.tsx` import: moving `ForwardSearch`\nout left it with no remaining use, which would fail `tsc` under `noUnusedLocals`.\n\nTests: `AppRoutes.webhooks.test.tsx`, mirroring `AppRoutes.skills.test.tsx` from\n#5924. They assert the END of the chain, so they fail if either hop regresses,\nand one drives `/settings/integrations` directly because that hop is reachable\non its own. Also covers the other direction — no stray `?` or `#` when the\nsource URL carries neither.\n\nVerified by reading AppRoutes.tsx:243, settingsRouteElements.tsx:129 and the\nexisting route-classifier tests (AppRoutes.redirects.test.tsx:133,\nAppRoutes.guards.test.tsx:227 already match `<ForwardSearch` as a redirect, so\nthis change does not disturb them). NOT EXECUTED — local test runs are\nforbidden by standing rule; CI is the check.\n M3gA-Mind committed 3 months ago
2e0f39d fix(chat): stop offering an Edit button the runtime cannot honour\n\nThe pencil "Edit" affordance on every user message was rendered, hovering,\nclickable — and inert. Clicking it did nothing at all: no edit composer, no\nchange to the message.\n\nThe feature is unbuilt rather than broken. `useOpenHumanExternalStore` supplies\n`onNew` / `onCancel` and implements neither `onEdit` nor `setMessages`, which is\nwhat assistant-ui requires for message editing, so the runtime reports\n`edit: false` and `EditComposer` never renders. `ActionBarPrimitive.Edit` was\nrendered unconditionally regardless.\n\nThe gate already existed and was simply never called. `useAuiEditCapabilities`\n(auiThreadState.ts) was written as "the honest gate for those affordances" and\nhad ZERO production consumers; the same file states the intended contract in\nits own words — "deliberately absent rather than rendered-and-inert: an edit\nbutton that looks supported and silently does nothing is worse than no button".\nThat rule was documented and unenforced. This wires it.\n\nGated on the capability rather than hard-coded off, so the button reappears by\nitself the day the adapter grows `onEdit`.\n\nSame class, fixed at the sibling site: `BranchPicker` is also rendered\nunconditionally, at both of its call sites, and is invisible today only because\n`hideWhenSingleBranch` happens to hold — the adapter implements no\n`setMessages`, so there is never more than one branch. That is assistant-ui's\nguard doing the work this app intended to do itself, and it becomes a second\ndead control if the prop ever goes away. It now returns null unless\n`canSwitchToBranch`.\n\nVerified by reading: thread.tsx:844 (the unconditional render),\nauiThreadState.ts:64-74 (the hook) and :78-97 (the stated contract), plus a\nrepo-wide grep confirming the hook had no production consumer. NOT executed —\nlocal builds and test runs are disabled for this phase, so CI is the check.\n M3gA-Mind committed 3 months ago
fd665e7 feat(memory): serve the scheduler gate to the module; manual override RPC\n\nHost half of tinyhumansai/tinymemory#126 and the serving+trigger halves of\nopenhuman#5935. The loaded memory module has no scheduler gate -- its own\ndocs say its loops "run unthrottled" -- so a user's mode=off, signed-out\nand battery pauses stopped at the process boundary.\n\nThe RuntimeHost object now serves SchedulerPolicy, answering the same\ncron::scheduler_gate policy the in-process seam reads, as wire strings so\nthe vocabulary stays additive. The module's bus-backed gate (upstream\nbranch, unreleased) polls and caches it; against the released v1.13.6\nmodule the member is simply never called, so this lands inert and the\nupstream release consumes it -- host-first, the order that avoids the\nrelease-gate deadlock.\n\nmemory.scheduler_override opens a bounded manual-override window through\nthe module's OverrideSchedulerGate member (clamped to an hour, default ten\nminutes): the gate's pauses protect the user from background cost they did\nnot ask for, and this is the sanctioned exception for work they explicitly\nrequested while paused.\n\nThe generic `call` CLI arm now publishes the module host policy before\ninvoking, the same per-process publish the memory and tree-summarizer\nsubcommand families already carry -- without it any module-crossing method\nfailed from `openhuman call`. Proven end-to-end against a locally built\nmodule: mode=off reaches the module (its diagnose reports "paused by you\n(scheduler gate = off)"), and the override RPC answers {overridden:true}.\n\nRefs openhuman#5935, tinyhumansai/tinymemory#126.\n Shanu committed 3 months ago
66fc9df