The deletion barrier only covered a twin whose delete was already
registered. Renaming away and back while the first create was still in
flight let the replacement create race it, then the first flight deleted
the replacement. Draft creates and deletes now share one per-backend
ledger keyed by the real connection id (the active gateway's id for a
local create), and a create waits until no earlier op on that name runs.
The dashboard's creation receipt is replaced only by a successful create;
a failed retry no longer clears the earlier warnings.
An adopted profile no longer loses its warnings, notice and chat when the
dialog unmounts during the readiness check; base completed that flow and
the generation guard after the check silently dropped it.
A draft recreated under a just-discarded name now waits for the old
draft's deletion, so a typo-then-backspace rename cannot race the delete.
Renames retire draft state only when a draft or its create exists, and
the catalog is copied only when draft-installed MCP rows need resetting.
The Configure model row is source-scoped only when the creation owner is
known and the host routes per profile; a legacy remote gateway without a
connection id is no longer labelled or routed as 'local'. The dashboard
receipt's dismiss control uses the shared i18n label.
The public summary counted the whole 512 KB capped log, so --lines (and the
dashboard lines field) did nothing and stale warnings read as recent. The
dashboard redact checkbox no longer had any effect (the summary carries no
log text). Tests pin --lines, INFO lines not mined, unknown logger roots.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
The confirmation dialog, dashboard API row and /debug parity verdict that
landed with the consent gate (#94876) still said the public paste carries
full logs; after the allowlisted summary it never does.
The public paste (hermes debug share, gateway /debug, dashboard
POST /api/ops/debug-share) uploaded secret-redacted log tails and full
logs. Subtractive redaction cannot recognise IPs, room IDs, display
names or message bodies, so those reached a public URL. The public
upload is now built from an allowlist in hermes_cli/debug_summary.py:
versions, install kind, platform/built-in toolset names, config.yaml
key shape (no values; user-named keys counted), and WARNING+/exception/
HTTP-status counts. --no-redact can no longer put logs on the public
paste; --nous and --local keep the full redacted bundle.
Refs #46006
POST /api/webhooks takes an optional validated `signature`
(generic|github|gitlab|linear; anything else is 422). A new route
without it is pinned to generic, an explicit value replaces the pin,
and a re-POST without it keeps the stored pin (or its absence). An
unpinned route accepts every signature family, so a body-only
GitHub/Linear MAC can replay a captured V1 request; dashboard-created
routes were the remaining writer that left new routes unpinned.
The web dashboard and desktop New subscription forms get a Signature
select (default generic) with help text; desktop copy in all
translated locales. Webhook types move to api-webhooks.ts /
types/webhooks.ts to stay under the file-size ratchet.
Refs #84265
The desktop and dashboard consent dialogs promised 6-hour deletion, but a paste.rs
failure falls back to dpaste.com (1 day, not deletable early); say so. Translate the
two new desktop keys in every locale overlay (overlay-completeness ratchet), use an
interface for DebugShareButton props, and scope the /debug nous upload docs to the
classic CLI: TUI and desktop reach the gateway handler, which refuses it.
Refs #94876
A bare `/debug` (classic CLI, TUI slash worker, gateway/messaging, Desktop
slash) and an empty POST /api/ops/debug-share (Desktop Maintenance "Debug
share", dashboard) uploaded logs to a public paste immediately; the privacy
notice was printed only after the paste existed. Typing a diagnostic command
is not consent to publish session logs.
- `/debug` and `/debug nous` now print the privacy notice and upload nothing;
`/debug upload` / `/debug nous upload` is the explicit consent. `/debug
local` is unchanged. The CLI parsing moves into hermes_cli/debug.py
(run_debug_slash) next to the share core.
- /api/ops/debug-share refuses (400) unless the body carries consent: true.
Desktop and the web dashboard ask through a destructive confirm dialog
first and only then send the marker.
- `hermes debug share` (TTY prompt / --yes) and the Nous diagnostics RPC
(caller-side consent) already gated correctly and are unchanged.
Fixes#94876
The salvaged extractor/validator check covers the docs site build, but the
runtime loader re-validates the raw live catalog JSON and passed docs_url
through to the dashboard's <a href>, and the site rendered plugins.json
values verbatim. Drop non-https docs_url in entry_from_mapping (entry kept,
like image/version) and route the website and dashboard links through the
shared externalUrlTarget scheme gate. The validator's docs_url check moves
into _check_page_fields to keep validate_entry under its CC ratchet.
Fixes#132195
* fix(dashboard): render the sidebar and footer plugin slots declared in slots.ts (#76381)
KNOWN_SLOT_NAMES declares and extending-the-dashboard.md documents ten
shell slots, but App.tsx rendered only seven — plugins targeting
sidebar, footer-left, or footer-right mounted into nothing (silent
no-op), including Nous's own strike-freedom-cockpit example.
Render footer-left/footer-right in SidebarFooter with the default cells
(version, org link) as PluginSlot fallbacks so plugin content replaces
them exactly as documented, and render the sidebar slot in the shell
rail only when layoutVariant === 'cockpit' (extracted as
CockpitSidebarSlot so the rule is testable).
Tests (web/src/plugins/shell-slots.test.tsx, vitest +
renderToStaticMarkup, no jsdom): default cells render as fallback,
plugin content replaces each footer cell, sidebar slot renders plugin
content only in the cockpit variant, nothing when unclaimed. Verified
both directions on the real tree: the file fails on pre-fix main
(missing component + footer assertions), 6/6 pass with the fix.
(cherry picked from commit bec944a9fc0f59940fd08c30f526fffb0aa9d3ba)
* refactor(dashboard): extract SidebarPluginNav to keep App under its health cap
App's FUNC_LINES is over target and may only go down from main (364);
the cockpit sidebar slot pushed it to 368. Move the plugin nav group
into its own component and drop the call-site comment that
CockpitSidebarSlot's doc already carries.
---------
Co-authored-by: spfcraze <spfcraze@users.noreply.github.com>
The up-front URL check only sees the URL the caller passed. A same-origin
endpoint answering with a redirect to another host, or a document <base href>
pointing elsewhere, still sent the session token there. Setting
mode: "same-origin" after the caller's init makes the browser refuse both,
and callers can no longer widen it.
Reported by the independent review of #152386; reproduced in headless Chrome
with two loopback servers (redirect and <base> rows leaked on the first head,
blocked now).
Both helpers attached X-Hermes-Session-Token and credentials: 'include'
to `${BASE}${url}`. On a root-served dashboard BASE is '', so an absolute
URL a plugin received from a third party (game-server asset links passed
to SDK.authedFetch) sent the session token to that host. Resolve the
request URL against window.location and throw before fetch when it is on
another origin. buildWsUrl always prefixes '/' so it cannot leave the
host; Desktop's browserFetch already enforces the same-origin check.
CI's jsdom runs without an origin, so window.localStorage is undefined
and ThemeProvider's mount-time getItem threw before the theme-trigger
assertion ran. Stub an in-memory Storage, as ChatPage.test.tsx does,
instead of optional-chaining the clears.
Node 25 exposes its own localStorage global that the jsdom environment
does not always shadow; CI hit 'Cannot read properties of undefined
(reading clear)'. Optional-chain the clears so the layout-class checks
run on either runtime.
Issue #70983: the sidebar footer controls rendered below the 24x24
CSS-px minimum on the narrow layout. The fix classes are now pinned
by a jsdom suite that asserts each target's rendered class tokens:
min-h/min-w-[24px] on the Log out button and the Nous Research link,
py-1.5 (not py-1) on both switcher triggers. The inline Config
sentence link stays exempt under SC 2.5.8's inline-text exception.
- AuthWidget.tsx: add min-h-[24px] min-w-[24px] to Log out button
- LanguageSwitcher.tsx: py-1 → py-1.5 for Switch language button
- ThemeSwitcher.tsx: py-1 → py-1.5 for Switch theme button
- SidebarFooter.tsx: add inline-flex items-center min-h-[24px] to Nous Research link
None of these changes alter visual text size or layout — only the invisible
hit area grows. Visual design remains identical.
(cherry picked from commit 6e8d0f417d49e2e33eeeb60ca4a9ad0dd0358203)
pnpm 12.15.0 (native executable) installs every JS workspace from one
pnpm-lock.yaml, imported from package-lock.json with the same resolved
versions. website/, the WhatsApp bridge and the photon sidecar stay separate
npm projects.
Configuration moves from .npmrc and the root manifest into
pnpm-workspace.yaml: the 14-day minimumReleaseAge and its excludes,
overrides, allowBuilds (the old allowScripts set, with strictDepBuilds
failing any unlisted build script), engineStrict, sideEffectsCache: false
(in-place rebuilds must not write into the store) and
verifyDepsBeforeRun: false (a `pnpm run` never installs).
The pnpm version is pinned in pm/lock.json and in root devEngines.
pmOnFail: ignore keeps that pin out of pnpm-lock.yaml: a leading pin
document makes osv-scanner read zero packages. scripts/build/node-deps.mjs
enforces the exact version instead, and every lock reader refuses a
multi-document lock. A root preinstall refuses `npm install`; devEngines
onFail is warn so npx (MCP servers, the tsc linter) keeps working inside
the checkout.
User-machine installs run --frozen-lockfile --trust-lockfile (release age is
checked when locking, in CI, not per user). node-deps removes npm-era
node_modules trees before the first pnpm install. Nix builds the store with
fetchPnpmDeps and a hash file that CI checks.
The @source pointed at web/node_modules/@nous-research/ui/dist, but npm hoists the package to the
root node_modules, so Tailwind silently skipped it and the dashboard lost the utilities only the
bundle uses (--font-sans, .!visible). Tailwind cannot resolve packages, so both locations are
listed; the missing one is skipped.
POST /api/dashboard/agent-plugins/update-all runs the same unattended
update-all as Desktop and /plugins update (nothing accepted on the
user's behalf; widened pins come back needs_review), and
GET/PUT /api/dashboard/plugins/auto-update read and set the profile's
plugins.auto_apply. Both run in the dashboard profile scope off the
event loop. The Plugins page gets the button and the switch; copy in
every dashboard locale. Plugin catalog types move to api-plugins.ts to
keep api.ts under its size cap.
- Drop the assertions that read web/desktop TS sources (tests/AGENTS.md bans
source-reading tests); the frontends get their own auxTaskRows tests.
- The leftover-block test now proves the block is inert: it survives
load_config(), the "reset to main" stale-pin nudge ignores it, a direct
assignment is rejected with 400, and assign-all leaves it untouched.
- config_defaults: rewrap the merged note so the removal and the Compression
notes sit on separate lines (net -1 line under the file cap).
- integrations/providers: OpenCode session-header list no longer names
"skills-hub lookups" as an auxiliary call.
Refs #40703
Skills Hub search/install is deterministic; nothing calls
call_llm(task="skills_hub"). Removes the slot from DEFAULT_CONFIG, the CLI
picker, the dashboard and Desktop task lists (+ their locale strings) and
the docs, as requested in the review of #40710.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The account list no longer disappears when only the access-list question
fails (managed_by 'unknown'); minting still re-asks and refuses.
- Linking snapshots the linked accounts right before minting, so a failed
earlier load cannot make every existing account read as newly linked.
- The Portal button follows the instance's Portal (operator override, stored
login, default) through the scoped resolver instead of raw os.environ.
- Managed copy no longer asks the user to link here.
- Tests: the stand-in connector checks the bearer on the access route and
answers 404 like a connector without it; the managed test also rejects the
'Link another' button.
- On a Portal-managed agent (connector /manage/access/list answers
managedBy: portal) a code minted with the gateway bearer carries no owner, so
its redeem binds no account (gateway-gateway scopeService: a managed agent
takes only the Portal setting). The gateway now refuses to mint there
(managed_by_portal) and the Channels card on both surfaces lists the linked
accounts read-only with a 'Link accounts in Nous Portal' button.
- Success is a new platformUserId in the refreshed list, never an 'inactive'
code before expiry: 'inactive' also means used by an already-linked account
or unknown. That case now shows a neutral note; expiry still says expired.
- Desktop keys the link card by connection + profile + platform, so a code,
poll or account list never carries over to another backend.
Closing the code (setLink(null)) re-ran the poll effect and set its cancelled
flag before the account reload returned, so a successful link never showed the
confirmation.
- Desktop: key the link panel by platform so a pending code never follows the
user to another platform's page.
- A code that goes inactive before it expires was redeemed: a re-link from an
already-linked account no longer reads as "expired".
- Polling stops after 5 consecutive errors or at expiry and shows the error.
- Connector 401/403/409 map to named, plain-language errors; 5xx/408/429 are
retryable (503); unlink answers {unlinked: true}; a silent gateway is worded
for stopped, too-old and timed-out alike.
On a Hermes Cloud instance with Team Gateway, every direct messaging adapter is
switched off at gateway start (config_env._relay) and the connector's shared bot
is the only way Telegram, Discord and Slack reach the agent. The Channels page
and the Desktop messaging page still offered "Create with QR" and bot-token
setup, which make a bot the relay never runs: users finished setup, restarted,
and the bot never answered (#141546, #138101).
The instance now mints the connector's one-time `/link <code>` itself:
- gateway/relay/link.py calls /manage/link, /manage/link/state,
/manage/link-status and /manage/unlink with the per-gateway bearer, and
builds the shared bot's DM link from GATEWAY_RELAY_BOT_IDS.
- The per-gateway secret lives only in the gateway process, so the gateway
answers a new `relay-link` control-socket verb and the dashboard routes
(/api/messaging/relay*) go through it.
- /api/messaging/platforms reports relay_fronted / relay_exclusive per platform.
- Dashboard Channels and Desktop Messaging show a Team Gateway card (link
button, QR of the bot, the exact message to send, linked accounts with
Unlink) and hide the direct setup that cannot work under an exclusive relay.
The /api proxy rewrote a WebSocket upgrade's Origin to HERMES_DASHBOARD_URL.
Pointed at a port forward (http://127.0.0.1:8000 forwarded to the backend on
9119), that Origin names neither the backend's bound port nor the Host the
proxy keeps (localhost:5173), so the backend refused the dev page's sockets.
The proxy sets no changeOrigin, so Host stays the page's own authority and
the browser's Origin already names it, which the backend admits as
same-origin. Drop the rewrite and its helper, pin the proxy options, and
pin both header pairs in the backend test.
_TRUSTED_LOCAL_ORIGIN_PORTS (9119, 5173, 5174, 4174) was trusted on every
backend, including packaged Desktop backends on an ephemeral port. A Vite app
on 5173, or on 5174 when 5173 is taken, could still read the session token
from / and open /api/ws. _is_trusted_local_origin() now accepts only the bound
port and the desktop dev renderer this backend was spawned for
(HERMES_DESKTOP_DEV_SERVER). `hermes dashboard` keeps working on 9119 because
that is its bound port.
The dashboard's Vite dev server was the only client that relied on a fixed
port: the browser's Origin on proxied /api upgrades is Vite's. The /api proxy
now presents upgrades from Vite's own page (Origin host equals Host) with the
backend's origin, and passes every other Origin through for the backend to
refuse, so it does not launder foreign pages the way Vite's rewriteWsOrigin
would. Vite's default CORS grants every localhost port and would hand another
local page the token hermesDevToken() injects into index.html, so it is off.
(cherry picked from commit 66de028a3ce39ec49a32205855dc269d30bf3942)
Review on #145357 (@unsupportedpastels):
M1: a failed chunk request reloaded even when nothing was rebuilt (a
network abort, offline). Before reloading, fetch the page's index.html
with cache: no-store and reload only when it names a different built
entry than the running one; skip while offline and in dev. Otherwise
the import rejects as before.
M2: the single tab-wide 5-minute timestamp suppressed recovery for a
later build (A -> B -> C inside the window). The session guard now
records the entry the tab reloaded away from, so a repeat on the same
build (or a reload that lands on it again) is suppressed while a newer
build can still recover.
The tests called reloadForChunkLoadError directly, so a broken listener in
startChunkLoadRecovery would stay green. startChunkLoadRecovery now takes the
storage and reload seams, and the tests dispatch the event itself: one reload
then suppression, chunk CSS / Safari / Firefox messages, and throwing storage.
Renaming the listened event turns 4 of the new cases red.
A web UI tab (Webapp / gateway web UI / dashboard) opened before
`hermes update` keeps referencing the old hashed page chunks. The update
rebuilds web_dist with emptyOutDir, so the first page the stale tab opens
404s on its chunk; there is no error boundary, so React unmounts the whole
app and the tab goes blank until the user reloads by hand.
Listen for vite:preloadError (fired for every failed lazy import and chunk
CSS preload) and reload once; index.html is served no-store, so the reload
picks up the new build. A sessionStorage timestamp limits it to one reload
per 5 minutes per tab, and only build chunks under /assets/ qualify, so a
broken plugin bundle never triggers it.
Review on #145574:
- The Settings summary labelled the unsaved memory.provider draft "Active
memory provider" even when GET /api/memory named another one. The draft
now shows as "Selected memory provider" (not active yet, naming what
sessions keep using), and the active row and recall copy come only from
status.active. A config autosave that touches `memory` refetches.
- Readiness refreshes after an inline credential save, a full-config modal
save and OAuth completion ($memoryStatusRevision); a failed status read
shows "Memory status unavailable" with Retry instead of dropping the badge.
- The built-in row reflects memory.memory_enabled / user_profile_enabled in
Settings ("On by default" where the config isn't loaded), and recall is
claimed only for a ready provider. Web dashboard copy drops "always on".
- isExternalMemoryProvider matches the backend's full sentinel set,
including `default`.
Refs #144648 (WA-22)
Refs #145175
The dashboard Memory card moves into its own MemorySection and the
Settings slot decides its own visibility, so SystemPage and
ConfigSettingsInner end no larger than on main (code-health ratchet).
Refs #144648 (WA-22)
An external memory provider is additive: MEMORY.md / USER.md stay loaded
in every session. The Memory surfaces did not say so, and Desktop/Webapp
Settings > Memory & Context showed only the provider select plus the
built-in toggles, so a working provider read as "not in effect".
- Desktop + Webapp: new MemoryLayersSummary (Settings > Memory & Context >
Persistent memory, and Command Center > Maintenance) names the active
provider with its readiness from GET /api/memory (or "None - built-in
memory only") and labels MEMORY.md / USER.md as the built-in layer,
"Always on". On Settings it follows the live memory.provider draft.
- Dashboard System page: "Active memory provider" and a "Built-in layer -
always on" label with the additive note, through web i18n.
- MemoryStatusResponse now types the per-provider status the server
already returns; getMemoryStatus takes the Settings scope profile.
No endpoint change: GET /api/memory already returns active + status.
Refs #144648 (WA-22)
Refs #145546Fixes#145175
A passive-effect cleanup on the outgoing page runs after the incoming page's
layout effects, so leaving Sessions (the landing route) or Files still erased
the next page's header action, e.g. Channels' Restart gateway. Move the
remaining passive header writers (Sessions, Files, Plugins and Chat's title)
to useLayoutEffect, document the rule on usePageHeader, and cover leaving
Files and Sessions.
Reset per-page header slots during the route render, before child layout
effects populate them. The parent layout effect previously erased the
Channels restart action on direct load and replacement slots on navigation.
Adapt the provider-reset portion of #45652. The separate hidden ChatPage
writer was already addressed by #72234. Add real Channels and route lifecycle
coverage, including delayed mounting and clearing every previous slot.
Co-authored-by: WompaJango <WompaJango@protonmail.com>
The installed map listed each ClawHub lock row under its bare slug as well
as clawhub/<slug>. A bare id carries no source, so with @alice/foo
installed, a `foo` from any other source would also read installed.
HubLockFile.by_identifier now keys a ClawHub row by its lock id and the
source-qualified clawhub/<slug> card id only. Desktop cards install that
id, so they need no change. The dashboard's hub search and featured list
carry a ClawHub skill's bare slug, so web/src/lib/skill-hub-installed.ts
looks a hit up under its own id, then under the id a catalog card would
install for it (skillCatalogInstallIdentifier), which differs only for
ClawHub.
Co-authored-by: unsupportedpastels <theoldwizard123@pm.me>
The first-run offer on Desktop, the dashboard and the terminal had a
third answer ("Keep on this computer" / "Collect locally only" / "Local
only") that collected stats nobody reads: no surface shows them to the
user, and data from before an opt-in is never sent. Every surface now
offers "Share with Nous" or "No thanks", and each answer sets `enabled`
and `send` together. Desktop Settings > Privacy and `hermes setup
telemetry` become one on/off choice to match.
Profiles that already chose collect-only keep that answer and are not
asked again: they saw the question and declined to send. Nothing is sent
for them; the Desktop switch reads off and the `hermes tools` row says
"collecting locally".
Copy that described collection as a separate local choice is rewritten
in every locale that carries it (de, es, fr, ja, ru, zh, zh-hant, ar).
- Dashboard: the update route answered a scan block with a bare HTTP 400,
so the browser page could not show the findings or send force. It now
passes scan_blocked through (update route only; install is unchanged),
and the page's update button runs the same consent-then-scan flow as
Desktop through web/src/lib/plugin-update.ts. AgentPluginUpdateResponse
moves to web/src/lib/api-plugins.ts (api.ts is over the size cap).
- Saved update checks now record the install they were checked against
(source, revision, pin). A result is dropped once any of those changed,
so a --ref pin or a reinstall from another source no longer shows an
Update button that update refuses. An update_url feed's version target
is offered too (the old match compared it to a commit and never hit);
the row field is update_target, a commit or a version.
- Each finding in the Desktop dialog shows its description.
- Tests: a real subdirectory install exercises the re-clone path (caution
needs force, dangerous refused even with it, refusals leave the tree and
record alone); the dashboard route returns findings and applies with
force; the saved signal drops on update, new source and pin.
- locales/_keys.desktop.json regenerated for the new Desktop strings.