Files
Cursor Agent 87ff841023 Fix revoke race returning stale approved status and clear last_seen_at on re-register
Bug 1: In client-approval mode, when markSeen returns None (because the
client was revoked/rejected between upsert and markSeen), the fallback
incorrectly returned status 'approved'. Now returns 'rejected' to prevent
credential minting for revoked/rejected clients.

Bug 2: The upsert conflict path for revoked clients cleared status,
approved_at, rejected_at, and revoked_at but never cleared last_seen_at,
causing stale 'Last connected' times after re-registration. Now resets
last_seen_at to NULL when a revoked client re-registers.
2026-06-27 14:35:28 +00:00
..