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: mobile companion is iOS + Android; platform-neutral pairing invariants
reviewe7e21e31f3f6
diff --git a/CLAUDE.md b/CLAUDE.mdindex 101c7edcb..efb65380e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -8313,6 +8313,19 @@ unix-socket forward over it. POSIX keeps OpenSSH untouched.Phone "Remove" (`pairing-service.revokeDevice`) revokes ALL phone pins and cuts ALL phone relaysessions, before the SSH key and the device entry go — all-phones because no box key maps to adevice; a failure reports `local:false` and keeps the device listed to retry.+- **Phone pairing is platform-neutral, and revoke still speaks the iOS-era stamp.** New keys are+ stamped `nodeterm-mobile-<deviceId>` (`pairing-core.deviceCommentFor`); `filterAuthorizedKeys`+ matches BOTH that and the legacy `nodeterm-ios-<deviceId>` (`deviceCommentsFor`), because every+ iPhone paired before Android existed carries the old stamp — drop the legacy leg and "Remove"+ reports a phone removed while its SSH key stays live. The device name is what the phone sends+ (Android sends one), sanitized to one ≤64-code-point line; with none it is `'Phone'`, EXCEPT the+ iOS app — which has never sent a name — is recognised by its fixed key comment `nodeterm-ios` and+ keeps `'iPhone'`. Store links go through `renderer/lib/links.ts` `mobileStoreLinks()`; the Play+ link is hidden by the single `ANDROID_APP_PUBLISHED` flag until the listing exists, and+ `mobileStore.guard.test.ts` refuses a direct store URL anywhere else. `LicenseSource` includes+ `'google'` (a Play purchase bridged from the phone, `google:<orderId>`), with its own+ `licenseCopy` sentence. `settings.mobileLiveActivities` keeps its key; the UI says "Live updates+ on phone".- **A Windows desktop pairs relay-only — no SSH key, and do not "fix" that by writing one.** Thephone's direct-SSH path is POSIX sh + tmux end to end (nodeterm-ios `HostCommands`, `TmuxBinary`,the typed `tmux new-session -A` attach, workspace paths with no `%APPDATA%` candidate). Windows@@ -9301,11 +9314,13 @@ For every OTHER test dir, two layers, both needed:1. **Desktop** (Electron) — the primary app (`src/main` + `src/renderer` via the preload).2. **Server Edition** (Linux, browser) — `src/server` + the `src/renderer/bridge` shim (seethe `src/server/` bullet above and docs/SERVER.md).- 3. **Mobile companion** — *nodeterm mobile*, a **separate PRIVATE repo** (`nodeterm-ios`)- — outside contributors cannot see or PR it, so a mobile implication is raised in the- desktop PR and **@eneskirca** is mentioned to carry it over- (SwiftUI + SwiftTerm/Citadel, tmux-integrated, talks the `TerminalTransport`/RemoteTransport- protocol).+ 3. **Mobile companion** — *nodeterm mobile*, two **separate PRIVATE repos**: `nodeterm-ios`+ (SwiftUI + SwiftTerm/Citadel) and `eneskirca/nodeterm-android` (Kotlin/Compose, in+ development) — outside contributors cannot see or PR either, so a mobile implication is+ raised in the desktop PR and **@eneskirca** is mentioned to carry it over. Both are+ tmux-integrated, talk the same `TerminalTransport`/RemoteTransport protocol and the same+ pairing/relay/mirror wire contracts, so a desktop change must not assume the phone is an+ iPhone (copy, defaults, store links — see **Phone pairing is platform-neutral**).**The canvas and the kanban board are TWO VIEWS of the same nodes — treat the board as afirst-class surface, not an afterthought.** Every session/node feature you add to a canvas nodediff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 37a0c4b32..810aab6f6 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -120,10 +120,12 @@ applicable here":1. **Desktop** (Electron)2. **Server Edition** (Linux, browser)-3. **Mobile companion** — *nodeterm mobile*, a **private** repo (`nodeterm-ios`, SwiftUI). You- cannot open a PR against it, so this is normally a follow-up note rather than same-PR- work: say in your PR what the mobile side would need, and **mention @eneskirca** so it- gets picked up there. "Not applicable" is a fine answer — just make it a stated one.+3. **Mobile companion** — *nodeterm mobile*, two **private** repos: `nodeterm-ios` (SwiftUI) and+ `eneskirca/nodeterm-android` (Kotlin, in development). You cannot open a PR against either, so+ this is normally a follow-up note rather than same-PR work: say in your PR what the mobile side+ would need, and **mention @eneskirca** so it gets picked up there. "Not applicable" is a fine+ answer — just make it a stated one. Never assume the phone is an iPhone in desktop copy or+ defaults.Anything reachable from `window.nodeTerminal` needs a **real** implementation in`src/renderer/bridge/`, or a deliberate, documented degrade. The `satisfies NodeTerminalApi` gate@@ -491,6 +493,12 @@ anything else. Board-level fields survive every transform — `pullLinks` is onethe relay, so a key that works locks it onto a path that cannot work. CLAUDE.md, "Remote access",has the details.+- **Phone keys and store links are platform-neutral.** New paired keys are stamped+ `nodeterm-mobile-<id>`, but revoke must keep matching the legacy `nodeterm-ios-<id>` stamp every+ existing iPhone carries (`src/main/pairing-core.ts`). Link to a store only through+ `mobileStoreLinks()` in `src/renderer/lib/links.ts` — the Play link stays hidden behind+ `ANDROID_APP_PUBLISHED` until the listing exists, and a guard test refuses direct store URLs.+- **Relay pins are per role, and a revoke is one call.** Pin a peer only through its role's storein `src/main/remote/approved-devices.ts` (`phonePins` is the only one anything auto-admits from —never write a desktop peer there), and revoke only through `src/main/remote/peer-revoke.ts`, which