mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
The quota command races every provider read against a five second timeout and exits as soon as output is written. The Codex read refreshes the OAuth grant, and between parsing the grant and writing auth.json there were two await points, so a timeout or the exit could land with the old refresh token already retired server-side and the new one only in memory, signing the user out of Codex. A rotated token was also dropped when the re-read of auth.json failed or when the grant carried no access token, and a failed write looked like a network error. The persist path is now synchronous from the parsed grant to the atomic rename, keeps the credential file's own private mode, falls back to the in-memory document when auth.json cannot be re-read, persists a rotated refresh token even without an access token, reports a failed write on stderr, and the grant request no longer honours the caller's abort so a rotation the server has committed cannot be cancelled mid-response. |
||
|---|---|---|
| .. | ||
| antigravity.ts | ||
| claude.ts | ||
| clinepass.ts | ||
| codex.ts | ||
| copilot.ts | ||
| cursor.ts | ||
| gemini.ts | ||
| grok.ts | ||
| index.ts | ||
| kimi.ts | ||
| security.ts | ||
| types.ts | ||
| zai.ts | ||