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
fix(pairing): LAN-only pairings say so — QR hint, toggle-flip regeneration
enesd8936b3c585f
diff --git a/src/renderer/components/PhonePairPopover.tsx b/src/renderer/components/PhonePairPopover.tsxindex c770f7d9a..7ce20a1a2 100644--- a/src/renderer/components/PhonePairPopover.tsx+++ b/src/renderer/components/PhonePairPopover.tsx@@ -32,6 +32,11 @@ export function PhonePairPopover({updateSettings({ phoneAccessEnabled: next })// Start/stop the standing relay host immediately.window.nodeTerminal.remoteHost.setPhoneAccess(next)+ // The relay block is baked into the QR when the listener STARTS — a code already on+ // screen doesn't know about this flip, and scanning it would still produce a LAN-only+ // pairing (the field failure: works at home, dies on cellular). Regenerate; start()+ // cancels the old listener silently.+ if (phase === 'waiting') void start()}// Straight into the QR on open (local-network pairing is free — no gate here).@@ -85,6 +90,12 @@ export function PhonePairPopover({<><img src={qr} width={208} height={208} alt="Pairing QR code" className="phone-pair__qr" /><div className="phone-pair__hint">Scan with the nodeterm iOS app · waiting (10 min)</div>+ {!phoneAccessEnabled ? (+ <div className="phone-pair__warn">+ LAN-only code: the phone will reach this Mac only on this network. Flip the+ toggle below first to also connect from anywhere — the QR refreshes by itself.+ </div>+ ) : null}{sshHealed ? <div className="phone-pair__ok">✓ Remote Login is on.</div> : null}</>)diff --git a/src/renderer/components/settings/sections/PhoneSection.tsx b/src/renderer/components/settings/sections/PhoneSection.tsxindex e2d2f0479..ab241742b 100644--- a/src/renderer/components/settings/sections/PhoneSection.tsx+++ b/src/renderer/components/settings/sections/PhoneSection.tsx@@ -45,12 +45,6 @@ export function PhoneSection({ isActive }: { isActive: boolean }): React.JSX.Eleconst phoneAccessEnabled = useSettings((s) => s.settings.phoneAccessEnabled)const updateSettings = useSettings((s) => s.update)- const togglePhoneAccess = (next: boolean): void => {- updateSettings({ phoneAccessEnabled: next })- // Start/stop the standing relay host immediately.- window.nodeTerminal.remoteHost.setPhoneAccess(next)- }-const refreshDevices = useCallback(async (): Promise<void> => {try {setDevices(await window.nodeTerminal.pairing.listDevices())@@ -65,6 +59,17 @@ export function PhoneSection({ isActive }: { isActive: boolean }): React.JSX.Ele() => void refreshDevices())+ const togglePhoneAccess = (next: boolean): void => {+ updateSettings({ phoneAccessEnabled: next })+ // Start/stop the standing relay host immediately.+ window.nodeTerminal.remoteHost.setPhoneAccess(next)+ // The relay block is baked into the QR when the listener STARTS — a code already on+ // screen doesn't know about this flip, and scanning it would still produce a LAN-only+ // pairing (the field failure: works at home, dies on cellular). Regenerate; start()+ // cancels the old listener silently.+ if (phase === 'waiting') void start()+ }+// Load the paired-device list on mount.useEffect(() => {void refreshDevices()@@ -168,6 +173,13 @@ export function PhoneSection({ isActive }: { isActive: boolean }): React.JSX.EleclassName="rounded-lg bg-white p-2"/><p className="text-sm text-muted">Waiting for your phone… (10 min)</p>+ {!phoneAccessEnabled ? (+ <p className="text-sm" style={{ color: '#ff9f0a' }}>+ LAN-only code: the phone will reach this machine only on this network. Turn+ on <strong>Remote access from your phone</strong> above first to also+ connect from cellular — the QR refreshes by itself.+ </p>+ ) : null}{sshHealed ? (<p className="text-sm" style={{ color: '#30d158' }}>✓ Remote Login is on — scan away.