zeroclaw/web/src/hooks
SimianAstronaut7 1033287f38
fix(gateway): skip pairing dialog when require_pairing is disabled (#3422)
When `require_pairing = false` in config, the dashboard showed the
pairing dialog even though no pairing code exists, creating a deadlock.

Add `requiresPairing` field to AuthState (defaults to `true` as a safe
fallback) and update it from the `/health` endpoint response. Gate the
pairing dialog in App.tsx on both `!isAuthenticated` and
`requiresPairing` so the dashboard loads directly when pairing is
disabled.

Closes #3267

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:08:59 -04:00
..
useApi.ts feat(gateway): add embedded web dashboard with React frontend 2026-02-21 16:14:01 +08:00
useAuth.ts fix(gateway): skip pairing dialog when require_pairing is disabled (#3422) 2026-03-13 14:08:59 -04:00
useSSE.ts feat(gateway): add embedded web dashboard with React frontend 2026-02-21 16:14:01 +08:00
useWebSocket.ts feat(gateway): add embedded web dashboard with React frontend 2026-02-21 16:14:01 +08:00