Skip to content

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.

fix(pairing): record hostDeviceId on entitled relay mints too

enes3a73e7ed1255
diff --git a/src/main/pairing-service.ts b/src/main/pairing-service.ts
index 59d7b2bff..30c3a1f25 100644
--- a/src/main/pairing-service.ts
+++ b/src/main/pairing-service.ts
@@ -89,7 +89,10 @@ async function mintRelayDevice(
headers: { 'content-type': 'application/json' },
body: JSON.stringify(
body.entitlement
- ? body
+ ? // hostDeviceId rides the ENTITLED mint too: without it the row lands with
+ // hostDev=null and the backend's same-desktop C2 allowance can never match a
+ // later free re-pair from this same machine (decoded live from a reauth log).
+ { ...body, hostDeviceId: getDeviceId() }
: {
deviceId: body.deviceId,
hostDeviceId: getDeviceId(),