fix(macos): reduce node pairing polling

This commit is contained in:
Peter Steinberger
2025-12-19 13:58:33 +00:00
parent 31620fea3a
commit 6795e78edf
3 changed files with 150 additions and 29 deletions

View File

@@ -82,6 +82,8 @@ Implementation pointers:
- Gateway handlers + events: `src/gateway/server.ts`
- Pairing store: `src/infra/node-pairing.ts` (under `~/.clawdis/nodes/`)
- Optional macOS UI prompt (frontend only): `apps/macos/Sources/Clawdis/NodePairingApprovalPrompter.swift`
- Push-first: listens to `node.pair.requested`/`node.pair.resolved`, does a `node.pair.list` on startup/reconnect,
and only runs a slow safety poll while a request is pending/visible.
## Storage (private, local)
Gateway stores the authoritative state under `~/.clawdis/`: