Commit Graph

564 Commits

Author SHA1 Message Date
Maciej Lisiewski
05b83f632f Merge pull request #143719 from NousResearch/bulk-update-js
chore(deps): bump npm dependencies to latest minor/patch releases
2026-10-25 12:54:29 +01:00
Bear Huddleston
b5eb5ee7a8 feat(webapp): carry the browser-hosted Desktop's server pieces from #93508
Carried from BearHuddleston's #93508 onto main. The Webapp relay and the
profile-incarnation fence stay out: carried code follows main's
named-profile rule and refuses a missing or deleted profile home.

- Webapp routes: one-use launch tickets, window handoff, and gateway
  WebSocket tickets minted for the signed-in browser
- Browser surface policy and the SPA document policy
- A host terminal for the browser that survives reconnects
- Staged browser uploads and file tickets; file.attach takes a staged upload
- hermes sessions adopt
- Webapp bundle build helpers and the renderer freshness check
- Regenerated gateway contracts

Co-authored-by: emozilla <emozilla@nousresearch.com>
2026-10-25 03:22:14 -07:00
Maciej Lisiewski
eb57df3823 chore(deps): keep three at 0.180.0
@nous-research/ui declares peer three ^0.180.0 (>=0.180.0 <0.181.0), so the 0.186.1 pin in web
left a second three: 0.180.0 hoisted for @nous-research/ui and 0.186.1 under web/node_modules,
both bundled into the dashboard. Back to the version the UI kit accepts until it widens its peer.
2026-10-23 23:16:06 +02:00
Maciej Lisiewski
41298d65a8 chore(deps): bump vite to 8.3.4
vite: 8.2.4 -> 8.3.4 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
458b9dbafd chore(deps): bump react and react-dom to 19.3.0
react+react-dom: 19.2.7 -> 19.3.0 (pins edited: 9; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
1201def24e chore(deps): bump three to 0.186.1
three: 0.180.0 -> 0.186.1 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
5b90561bfc chore(deps): bump tailwind-merge to 3.7.0
tailwind-merge: 3.6.0 -> 3.7.0 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
5107c494c5 chore(deps): bump react-router to 8.4.0
react-router: 8.3.0 -> 8.4.0 (pins edited: 2; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
0433c0934e chore(deps): bump motion to 12.43.0
motion: 12.42.2 -> 12.43.0 (pins edited: 2; also: {'framer-motion': "['12.42.2']->['12.43.0']"})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
73ff19fe1d chore(deps): bump eslint-plugin-react-refresh to 0.5.7
eslint-plugin-react-refresh: 0.5.3 -> 0.5.7 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
19374ee0c9 chore(deps): bump @types/react-dom to 19.3.0
@types/react-dom: 19.2.3 -> 19.3.0 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
67407d6cf5 chore(deps): bump @types/react to 19.3.0
@types/react: 19.2.17 -> 19.3.0 (pins edited: 4; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
e52e39ee20 chore(deps): bump @types/node to 22.20.5
@types/node: 22.20.1 -> 22.20.5 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
26745fc118 chore(deps): bump @rolldown/plugin-babel to 0.2.4
@rolldown/plugin-babel: 0.2.3 -> 0.2.4 (pins edited: 2; also: {'picomatch': "['4.0.5']->['4.0.7']"})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
5316aaea2d chore(deps): bump @react-three/fiber to 9.8.1
@react-three/fiber: 9.6.1 -> 9.8.1 (pins edited: 1; also: {'its-fine': "['2.0.0']->['2.1.1']"})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
4980098a78 chore(deps): bump @nous-research/ui to 0.19.1
@nous-research/ui: 0.18.2 -> 0.19.1 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
c9987be6b6 chore(deps): bump @babel/core to 8.0.7
@babel/core: 8.0.1 -> 8.0.7 (pins edited: 2; also: {'@babel/code-frame': "['8.0.0', '8.0.0']->['8.0.6', '8.0.6']", '@babel/compat-data': "['8.0.0', '8.0.0']->['8.0.5', '8.0.5']", '@babel/generator': "['8.0.0', '8.0.0']->['8.0.6', '8.0.6']", '@babel/helper-compilation-targets': "['8.0.0', '8.0.0']->['8.0.7', '8.0.7']", '@babel/helper-globals': "['8.0.0', '8.0.0']->['8.0.6', '8.0.6']", '@babel/helper-string-parser': "['8.0.0', '8.0.0']->['8.0.6', '8.0.6']", '@babel/helper-validator-identifier': "['8.0.4', '8.0.4']->['8.0.6', '8.0.6']", '@babel/helpers': "['8.0.0', '8.0.0']->['8.0.7', '8.0.7']", '@babel/parser': "['8.0.4', '8.0.4']->['8.0.7', '8.0.7']", '@babel/traverse': "['8.0.4', '8.0.4']->['8.0.7', '8.0.7']", '@babel/types': "['8.0.4', '8.0.4']->['8.0.6', '8.0.6']", '@jridgewell/sourcemap-codec': "['1.5.5']->['1.6.0']"})
2026-10-23 22:00:11 +02:00
Teknium
32fc5b878c Merge origin/main into window-plans
Resolves hermes_cli/auth_model_picker.py against 7a8569baa9 (the picker
takes a title, public as prompt_model_selection): keeps this branch's
description_lines()/menu_title() split, with menu_title(title=...) and the
title= parameter on _prompt_model_selection carried over from main.
2026-10-22 14:43:44 -07:00
Maciej Lisiewski
c82bdd01ae chore(deps): bump vitest to 4.1.12
Latest 4.1.x patch: mocker hardening for manual and redirect mocks
(vitest-dev/vitest#11580 backport to v4). Also bumps @vitest/mocker.

vitest 4.1.12 is 7 days old, below the min-release-age=14d guard, so
.npmrc gains a dated exclude entry (remove when > 2wks old).
2026-10-22 21:20:10 +02:00
rob-maron
6adca16a77 Merge branch 'NousResearch:main' into window-plans 2026-10-21 23:07:58 -04:00
Maciej Lisiewski
ba9534c157 fix(deps): bump vite 8.2.0 → 8.2.4 (high, GHSA-587h-7wmj-h5pm)
vite 8.2.4 bundles launch-editor fixes for GHSA-587h-7wmj-h5pm,
GHSA-r825-w8mm-5pxw and GHSA-698v-4r3x-3vcv. Bumped in all three
workspaces that pin it (web, apps/desktop, apps/bootstrap-installer),
leaving one hoisted copy.

Forced by vite 8.2.4's ranges:
- rolldown ~1.2.4: 1.2.1 → 1.2.13 (@oxc-project/types =0.153.0)
- postcss ^8.5.26: root override 8.5.23 → 8.5.29; website lock moved
  to the same 8.5.29

The .npmrc age-gate excludes for vite/rolldown/@rolldown/*/@oxc-project
were marked "remove once vite 8.2.0 is > 2wks old" (it is 82 days) and
let a same-day rolldown 1.2.15 into the lock, so they are removed; every
version above is past the 14-day gate. The website postcss exclude
("remove when 8.5.23 is > 2wks old") is removed for the same reason.
2026-10-21 21:14:06 +02:00
Gille
13282fdac4 fix(dashboard): allow safe WhatsApp re-pairing after logout (#142439)
* fix(dashboard): allow safe WhatsApp re-pairing after logout

* fix(whatsapp): retain pairing reservations through credential flush
2026-10-21 10:08:33 -04:00
emozilla
d7c48548a9 feat(shared-metrics): offer two consent answers, drop collect-only
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).
2026-10-21 00:32:21 -04:00
rob-maron
0e29e8a25a fix tests 2026-10-20 22:18:49 -04:00
rob-maron
83c5737be2 merge main in 2026-10-20 21:19:31 -04:00
rob-maron
15307dece7 Usage-window plan support 2026-10-20 21:04:30 -04:00
alt-glitch
c5a3c0f876 fix(plugins): address review — dashboard scan override, feed and pin-aware update signal, subdir coverage
- 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.
2026-10-20 12:26:35 +05:30
KoNit-K
d41b8aafdc fix: support session mutations on insecure origins
(cherry picked from commit e9b0c9cc5f727be592b1fab5af1b14327ca329b2)
2026-10-16 19:20:53 -07:00
unsupportedpastels
da01ee9c3c fix(plugins): run a served profile's dashboard plugins in its own plugin host
On a gateway serving several profiles, dashboard plugins were discovered
from the launch home only and mounted once in the gateway process. A plugin
installed only in a secondary profile answered 404 from that profile's
Desktop window, its plugins.isolation was ignored, and the interim rule ran
the launch profile's copy for it when both profiles enabled the name.

A request scoped to a secondary profile (its native grant or a ?profile=
selection) now gets that profile's own plugins, served through its own
plugin host (the existing per-profile host and its asgi op, bound to that
profile's home and secrets) whatever its isolation setting says. Their code
is never imported into the gateway.

- Discovery: the profile's own plugins/, then the root ~/.hermes/plugins
  (as a standalone `hermes --profile X serve` scanned before the cutover),
  then bundled; the profile's own copy wins a name clash. Root plugins also
  run in that profile's host.
- Consent: the requesting profile's plugins.enabled/disabled decide; the
  launch profile's consent no longer gates them. Disabled, not enabled and
  unknown names get identical answers (404 on HTTP, a 1008 close before
  accept on a websocket).
- Bundled plugins are Hermes code: a secondary profile uses the in-process
  router only when it is that profile's own bundled copy (the imported
  module's file, or for a cold mount the copy that would be mounted), and
  the cold mount binds the request's ?profile= before deciding. Otherwise,
  for example when a launch-profile user plugin shadows the bundled name,
  the request goes to the profile's host.
- Credentials: the session token, native grants, the Authorization and
  Cookie headers, and the gateway's query keys (token, ticket, internal,
  display_ticket, attach, profile; URL-decoded, every repeat) are removed
  before the request reaches the host. Ordinary plugin parameters pass.
- Assets: /dashboard-plugins/@<profile>/<name>/<file>, and
  /dashboard-plugins/... with ?profile=, bind that profile for the lookup
  and consent check (traversal and file-type checks unchanged; an unknown
  profile answers like an unknown plugin). The dashboard builds the path
  form, so files a stylesheet or bundle loads by relative URL come from
  the same profile. Its plugin loader binds its list request, asset URLs
  and loaded plugins to the selected profile and drops a list that lands
  after a switch; leaving a profile always removes that profile's
  stylesheets and bundles, even after its list became empty. A ?profile=
  rescan refreshes that profile's own cache.
- Plugin SDK: fetchJSON and authedFetch scope /api/plugins/ requests to
  the selected profile with ?profile=, and plugin sockets carry it too; a
  profile the plugin passes itself wins.
- The launch profile is unchanged.

The host protocol is request/response, so an authenticated websocket to a
secondary profile's hosted plugin gets a named refusal (HTTP 501 before
accept) instead of running in-process.

Tests that relied on a secondary profile reaching the launch copy now use
that profile's own copy (through a real host) or a bundled probe, and a
consent and refusal matrix covers both ways of selecting a profile.

Refs #134889 (PLG-3)
Refs #139523
2026-10-16 19:15:07 -04:00
Teknium
27141aa0e4 fix(plugin-catalog): CLI, dashboard and Desktop tell verified apart
- `hermes plugins search/browse` labeled every non-official entry
  "community" and sorted verified with community; it now prints the real
  tier and orders official, verified, community (review finding).
- Dashboard `CatalogEntry.tier` allows "verified" (review finding).
- Desktop tier pill: official in the accent colour, verified green with a
  check, community stays neutral, so verified reads differently from the
  other two at a glance.
2026-10-16 14:31:11 -07:00
Teknium
620f3b3b45 feat(plugin-catalog): add a Nous-granted verified tier
Verified entries come from the company that makes what the plugin integrates,
confirmed by the Nous team. Only maintainers set official/verified (CODEOWNERS
review; no CI check inspects the value). Tier order everywhere: official,
verified, community. Desktop's installed-plugin pill now reads the same
catalogInstall.tier map as the install card, dropping the duplicate
skills.plugins.tierOfficial/tierCommunity keys.
2026-10-16 14:31:11 -07:00
Teknium
0715474bfd Merge origin/main into feat/unified-gateway-runtime
375 commits from main (0e427d788d). 24 files conflicted; the resolutions that carry a decision:

- /initiate-setup: main removed the command (25bf722063). Its gateway rewrite, CLI handler and the
  Desktop kickoff go with main; this branch's command-layer admission of it is dropped too
  (gateway/session_commands.py _PROMPT_COMMANDS, its slash.exec test row, the parity doc row), and
  the Desktop slash dispatcher loses the `hidden` option that only the kickoff used.
- Code this branch moved out of its old file, carrying main's edits to the moved copy:
  first-contact notes (gateway/run_turn.py -> run_turn_prepare.py: no message/setup_command),
  the TUI agent factory (tui_gateway/server.py -> agent_factory.py: onboarding toolsets at build,
  setup_beat/set_theme lifecycle cards, no cli platform extras on a coding selection), the serve
  lifespan (web_server.py -> web_server_app.py standalone_lifespan: first-install probe before the
  state.db reconcile, onboarding due answer after the setup bootstrap), and the compression child
  publish (the shared _publish_compression_child_on_conn reads the parent's model_config).
- agent/auxiliary_client.py: both import changes (_route_key from main; this branch's move of
  _without_structured_output_format).
- Desktop: main's onboarding run (decideOnboarding, OnboardingEnd, card-waiting Send) replaces the
  kickoff; this branch's prepared-submission slash path, request_id on session.create and
  PreparedImageRecovery stay. Pool-limits imports are dropped (this branch removed the pool).
  createBackendSessionForSend takes main's (preview, overrides) signature.
- ci.yaml detect job: main's `ref: inputs.commit` plus this branch's sparse checkout.
- package.json / lock: main's vitest 4.1.11 plus this branch's ws 8.21.1.
- Generated: gateway-contract.openrpc.json regenerated; parity doc regenerated.
2026-10-14 05:52:49 -07:00
sajidhaleem
732f0f1769 fix(deps): bump pinned npm packages to clear npm audit findings
Bumps the version pins (root package.json overrides/dependencies, plus
direct devDependencies in web/ and ui-tui/) that were holding several
transitive packages on versions with known advisories:

- brace-expansion 5.0.9 -> 5.0.12 (ReDoS/stack-exhaustion advisories)
- js-yaml 4.3.1 -> 4.3.2 (merge-key CPU DoS)
- minimatch: unaffected directly, cleared via brace-expansion bump
- undici (^6 line) 6.28.0 -> 6.29.0, (^7 line) 7.29.0 -> 7.30.0
  (WebSocket/retry-interceptor/TLS-validation advisories); ui-tui's
  own direct undici dependency synced to 6.29.0 to match
- yaml 2.8.1 -> 2.9.1 (stack overflow on deeply nested collections)
- vitest / @vitest/mocker 4.1.10 -> 4.1.11 (path traversal in mock
  redirect); web and ui-tui devDependencies synced to match

Verified: npm audit findings across the three doctor-checked trees
go 3/8/6 -> 0/1/1. The one remaining finding in web and ui-tui is
source-map-js 1.2.1 (fix: 1.2.2, GHSA event-loop DoS) -- its patched
release is still inside this repo's npm install quarantine window
(time-pinned installs), so it intentionally was not forced; it will
clear on its own once the release ages past that window.

Full test suites re-run clean: web 429/429 passing, ui-tui 1624/1626
passing (the 2 non-passing are a pre-existing terminalParity.test.ts
failure reproduced identically on unmodified upstream/main, unrelated
to this change -- looks like a terminal/IDE-detection env dependency).

Reported by `hermes doctor`:
  Browser tools (agent-browser): 3 -> 0
  web workspace: 8 -> 1
  ui-tui workspace: 6 -> 1
2026-10-13 22:51:07 -04:00
Teknium
2cd0ec8686 Merge origin/main into feat/unified-gateway-runtime
215 commits from main (c70332f888). One textual conflict: the generated
apps/shared/src/gateway-contract.generated.ts, regenerated with scripts/gen_gateway_contracts.py
rather than hand-merged. Brings main's fix for the dated shared-metrics install-receipt test
(783637e370).
2026-10-13 05:15:48 -07:00
Teknium
812bb55ac6 refactor: keep the rollback wiring inside the code-health caps (#137714)
The statusbar rows share one versionItem builder and depend on the status
objects, the version tooltip moves its "what is waiting" lines into
pendingLines, the overlay status line into availableLine, and the dashboard
badge/toast into helpers; the dashboard payload carries one `rollback_to`
version instead of two fields.
2026-10-13 04:42:06 -07:00
Teknium
e36fa7ba6b fix(update): --version, the dashboard and a remote backend name a stable rollback too (#137714)
`hermes --version` printed "Update available", the dashboard badged
"update available" and the Desktop overlay for a remote backend said a
new update was ready, all for a stable release the checkout already
contains. Each now names the move back to that release. Also keeps the
install.ps1 if/else on one line.
2026-10-13 04:42:06 -07:00
Teknium
1bb22926ee Merge origin/main (#20: 54 commits to c538ec5f40) into feat/unified-gateway-runtime
No conflicts.
2026-10-07 15:22:46 -07:00
Austin Pickett
9d7a4ab718 fix(dashboard): hide AuthWidget on 401 via ApiError status
fetchJSON now throws ApiError with a humanized message, so the
widget's legacy `msg.startsWith("401:")` check never matched and a
401 from /api/auth/me rendered "auth status unavailable" instead of
nothing. Read the status off the error object.

Part of GH issue 66223 (loopback /api/auth/me).
2026-10-07 17:13:07 -04:00
Tranquil-Flow
0f56e56a24 fix(dashboard): repair loopback auth identity frontend integration (#66295) 2026-10-07 17:13:07 -04:00
Teknium
cff27bd30f Merge origin/main (#19: 14 commits to 2943ee6f19) into feat/unified-gateway-runtime
No conflicts.
2026-10-07 10:58:02 -07:00
ethernet
2943ee6f19 fix(ts): npm run fix 2026-10-07 13:42:42 -04:00
Austin Pickett
ef0c635f33 refactor(web): move session source config to SessionsPage_sources sibling; satisfy code-health ratchet 2026-10-07 11:18:50 -04:00
Austin Pickett
d199cc2465 test(web): behaviour coverage for structured reasoning transcript rendering
RED on main: the expanded session transcript renders assistant
reasoning with literal <thinking>/<action>/<result> wrapper tags.
Keeps the user-role invariant (literal tags stay on the Markdown path).
2026-10-07 11:18:50 -04:00
giggling-ginger
85d7a896d0 fix(web): scope structured reasoning UI to assistant messages
Only assistant content with known reasoning tags uses StructuredReasoning.
User and tool messages with literal <action>/<result> tags stay on Markdown.
2026-10-07 11:18:50 -04:00
giggling-ginger
cdda67f83f Fix reasoning markup rendering in dashboard 2026-10-07 11:18:50 -04:00
Teknium
ca38632fc0 Merge origin/main (#17: 454 commits to e6757f2029) into feat/unified-gateway-runtime
12 conflicted files, resolved in three lanes:
- gateway/run.py: take the branch split; main's tirith removal and spool-replay
  ordering ported into run_runtime_init.py / run_bootstrap.py.
- config migrations: main keeps v50 (tirith); the branch's bot-chat timeout removal
  becomes v51 (_config_version 51, template + test updated).
- hermes_state_usage.py: main's voice_chat task route threaded through the branch's
  owner transaction; worker.persist usage allowlist accepts task.
- tui_gateway/server.py: branch side; main's edits applied where the code now lives
  (agent_factory, session_registry). Desktop sessions get the catalog toolset on the
  authority path; daemon-run finite CLI turns are not watched turns; lazy session info
  reports nous/welcome on the free tier.
- Desktop/Ink: one branch-child spinner fix (main's route-token check); main's
  uninstall i18n keys kept, pool keys stay removed; voice_turn forwarded and accepted
  by the authority submit (surface_v1.voice_turn).
- chat_ws / PTY keepalive test: main's stricter test kept.
2026-10-07 06:48:09 -07:00
Teknium
6cc1efd8f9 feat(voice): auxiliary.voice_chat routes spoken voice turns to their own model
Voice replies had to come from the session's main model, so a heavy model made every spoken
answer slow (#83894). A new auxiliary slot, voice_chat, picks the model for voice turns:

- CLI/TUI voice mode, the Desktop voice conversation (prompt.submit voice_turn) and messaging
  voice notes mark the turn; agent/voice_turn_route.py binds the route after the prompt, row and
  preflight compaction were settled against the main model and undoes it before memory sync and
  background review, so the next typed turn and the review run on the main model.
- A turn larger than the voice model's compression threshold stays on the main model with a
  one-time notice: switching to voice never compacts the conversation.
- Usage lands in session_model_usage under task voice_chat; it never rewrites the session's
  recorded model/route, so resume keeps the model the user picked.
- Slot appears in Desktop Settings -> Models, the dashboard, and `hermes model`; GPT-Live
  delegations keep using the session model.
2026-10-07 01:35:11 -07:00
alt-glitch
5bff65203e fix(dashboard): web typecheck checks the app project; ChatSessionList test types its mocks
web/tsconfig.json is a solution file (files: [], references), so 'tsc -p . --noEmit' checked nothing and CI's web check passed while the build's 'tsc -b' failed on four errors in ChatSessionList.test.tsx (#134100). The typecheck script now runs 'tsc -b . --noEmit' like hermes-ink, and the test types the act-environment global and the Button mock's extra props.
2026-10-06 17:59:06 -04:00
andyst-dev
1ac3f97fbe fix(dashboard): enable touch scrollback in chat 2026-10-06 17:39:35 -04:00
Teknium
1e500ebce2 Merge origin/main (#16: 4,465 commits to 9dcab1e440) into feat/unified-gateway-runtime
99 conflicted files resolved in nine area lanes (Desktop composer, Desktop renderer/shared
client, Electron main, Ink, tui_gateway, gateway, state, CLI/config, cron/tools/CI). The
unified runtime's architecture wins where it deliberately replaced a mechanism (pool,
fallback lanes, claim poller, renderer queue); every orthogonal main change is kept, ported
into the <stem>_<topic> sibling that now owns relocated code.

Notable ports and repairs in this merge:
- tui_gateway/server.py relocated regions: atomic _attach_built_agent (#49852), slash ranking
  registry names, minted-key helpers methods_session.py calls, request_overrides, service tier.
- gateway/run_turn*.py: i18n accessors for the removed reply constants, first-contact
  internal/DM rule, rotated-compression persist, fast-mode tiers, prompt-pin rehydration.
- webhook: route_from_chat_id decodes main's opaque webhook:v2 chat ids (old ids still read).
- ws.py: main's per-connection dispatch queue with authority-first dispatch inside it.
- state: schema event for runtime revision renumbered to 31; worker mirrors updated for
  main's message uid/merge fields, on_contended lease arg, compression columns.
- config: branch's bot_chat_delivery_timeout removal renumbered v47 -> v50.
- Electron: primary-profile pin, redirect header scoping, remote fetchJsonForBackend, SSH
  teardown on profile delete, held-update dial gate restored (lost in earlier merges).
- Desktop: canonical clarify.request mapped to main's questions[] card; replay truncation vs
  snapshot_required; periodic secondary prune tick restored; DELETE already_absent restored.
- cron/tools: diagnostic category on cron failure notices restored; owner_holds_delivery
  ported onto the authority; admitted receipts can no longer be cancelled locally.
2026-10-06 14:24:24 -07:00