mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-10-21 05:23:19 +00:00
|
Some checks failed
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
* fix(quota): recover the Claude credential from the source it came from Both Claude quota providers resolve the OAuth credential from ~/.claude/.credentials.json and fall back to the macOS Keychain, which is where Claude Code keeps it on a normal Mac. Every recovery re-read went to the file whatever the credential had come from, so for a Keychain user it read nothing and the one place a renewed token can appear was never consulted: a lapsed login left the retry a dead end indefinitely. A recovery now re-reads whichever store the credential came from. When it cannot recover - the credential is unchanged and its expiresAt has passed - the provider reports terminalFailure with a line telling the user to run Claude Code once, rather than the transientFailure the desktop app's quota cards hold the last connected numbers through. A 401 on a credential still within its life keeps its transient handling and its backoff. The desktop app carries its own copy of this provider, where the same file-only re-read sat in two branches - the 401 and the one that re-reads a credential within five minutes of expiry - and both are fixed. * fix(quota): keep keychain reads on forced refresh and hold reconnect prompt Drop the near-expiry keychain re-read from the desktop provider; a keychain credential is re-read only after a 401, which only a forced refresh reaches. Hold terminalFailure through keychainUnchecked background polls. --------- Co-authored-by: review-bot <resham0209@gmail.com> |
||
|---|---|---|
| .. | ||
| quota | ||
| cli-win32-reap.test.ts | ||
| cli-win32-tree-kill.test.ts | ||
| cli.test.ts | ||
| cli.ts | ||
| mac-menubar.test.ts | ||
| mac-menubar.ts | ||
| main.test.ts | ||
| main.ts | ||
| menubar.test.ts | ||
| menubar.ts | ||
| optimize-store.test.ts | ||
| optimize-store.ts | ||
| preload.ts | ||
| telemetry.test.ts | ||
| telemetry.ts | ||
| tray-settings-atomic.test.ts | ||
| tray-settings-lock.test.ts | ||
| tray-settings.test.ts | ||
| tray-settings.ts | ||
| updates.test.ts | ||
| updates.ts | ||