Files
hermes-agent/apps/shared/src
Teknium 3187905d07 fix: explicit TUI attach negotiates the canonical wire when the endpoint has an authority
HERMES_TUI_GATEWAY_URL attach returned before the canonical adapter:
isCanonical stayed false, runtime.describe was never read, and Ink sent the
legacy session.create {cols, model} without `source: tui`. A gateway-hosted
dashboard's /api/ws is authority-backed, so that create is refused. Live
probe (real gateway, fake HOME, real Ink GatewayClient with an explicit
URL): session.create -> invalid_params (fields: ['cols']).

The WS listener's ready frame now advertises `session_authority: true`
when the connection is bound to a session authority (contract + generated
TS/OpenRPC updated). On that frame the client switches the connection to
the canonical adapter exactly like a local grant: runtime.describe, then a
single client-local gateway.ready that keeps the listener's skin, and every
request goes through canonicalRequest/canonicalResult. Endpoints without an
authority (standalone dashboard / serve) advertise nothing and keep the
legacy wire. Each explicit connection renegotiates on reconnect. Probe
after: canonical=true, session.create -> a `tui`-source session.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5460639040
2026-10-08 19:09:43 -07:00
..
…
…
…
…