Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
docs(relay): local-confirm sites and the bridged-socket TTL claim, stated as the code has them
reviewb1324eb0c6e6
diff --git a/src/core/relay/hosted-scheduler.ts b/src/core/relay/hosted-scheduler.tsindex b763b6f5c..85519999e 100644--- a/src/core/relay/hosted-scheduler.ts+++ b/src/core/relay/hosted-scheduler.ts@@ -137,8 +137,10 @@ export function createHostedScheduler(deps: SchedulerDeps, now: () => number) {e.refresh = deps.setTimeout(() => {e.refresh = null// A bridged listener has no refresh (its timer is cleared on bridging); this is only defence.- // It is never cut for a refresh — the relay drops it at TTL and onClose takes it from there —- // and it is never re-armed: a bridged refresh would prove nothing (see the header), so a timer+ // It is never cut for a refresh — whether the relay ends a bridged socket at its token's+ // lifetime is UNVERIFIED (the broker's source checks a token only when a socket joins; the+ // device checklist in docs/hosted-team-relay.md settles it), and if it does, onClose takes it+ // from there — and it is never re-armed: a bridged refresh would prove nothing (see the header), so a timer// for it would be a timer per session that does nothing, forever for one whose close is lost.if (state !== 'running' || !live.has(e) || e.bridged) return// This IDLE listener held its registration for a whole token lifetime: new registrations work.diff --git a/src/core/relay/relay-trust.ts b/src/core/relay/relay-trust.tsindex d44ba902a..29879c1f4 100644--- a/src/core/relay/relay-trust.ts+++ b/src/core/relay/relay-trust.ts@@ -26,9 +26,12 @@// its own `onTunnel` — so a confirm arriving on session A's tunnel is physically unable to reach// session B's state, and `recordApproval` can only ever pin the key bound into the state it is given.//-// LOCAL confirms have exactly three call sites: `confirmHere()` from the desktop dialog-// (`relay:host:confirm`), `autoApprove` for a pinned key, and the hosted owner's-// `relay:hosted:approve`. A fourth is a design change.+// LOCAL confirms have exactly five call sites, three on the HOST side and two on the CLIENT side.+// Host side: `confirmHere()` from the desktop's Team Access dialog (`relay:host:confirm`), the host's+// `autoApprove` for a key its pin store holds (the hosted team's `team.json`), and a hosted owner's+// `relay:hosted:approve`. Client side: the joining human's `relay:client:confirm`, and the client's+// `autoApprove` for a hosted team's approved bookmark (src/main/remote/hosted-join.ts). A sixth is a+// design change.import {confirmLocal,confirmRemote,diff --git a/src/main/remote/standing-host.ts b/src/main/remote/standing-host.tsindex 75135dc79..9343e8509 100644--- a/src/main/remote/standing-host.ts+++ b/src/main/remote/standing-host.ts@@ -244,8 +244,10 @@ export function initStandingHost(// what resets it (see connectOne).reconnectAttempt = 0// A listener serving a client (bridged) is left alone — never cut an active session for a- // token refresh; the relay drops it at TTL and onClose replaces it. Only an IDLE listener is- // re-minted with a fresh token by dropping it and topping the pool back up.+ // token refresh. Whether the relay ends a bridged socket at its token's lifetime is+ // UNVERIFIED (the broker's source checks a token only when a socket joins; the device+ // checklist in docs/hosted-team-relay.md settles it); if it does, onClose replaces it. Only an+ // IDLE listener is re-minted with a fresh token by dropping it and topping the pool back up.if (p.bridged) {scheduleRefreshFor(p, DEFAULT_TTL_MS)return