You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix key removal bug and remaining client vs serviceClient issues
Edge Function fixes:
- Fix two more places where 'client' was used instead of 'serviceClient'
in runAgentGeneration (heartbeat update at line 1414, model info update at 1612)
- This fixes "Job Failed: Client Not found" error in production
Client-side fixes:
- settings.js: Use clearServerKey() function which handles device-specific
AND legacy storage keys (was only removing legacy key)
- settings.js: Clear useBackgroundJobs setting on removal
- job-queue.js: clearServerKey() now also clears serverApiKey and sessionExpiresAt
Tests:
- Add 4 more tests for key removal edge cases:
- Clear both device-specific and legacy keys
- Clear useBackgroundJobs setting
- Clear all session state (serverApiKey, sessionExpiresAt)
- Verify key not visible after removal + page reload
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments