mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
## Why An unreadable or malformed `auth.json` could be treated as an account mismatch during token refresh or unauthorized recovery, producing a permanent failure. ## What changed Propagate storage errors from guarded auth reloads as transient failures, preserving cached credentials and allowing recovery to retry. Apply credential-safe error formatting to file deserialization and agent identity JWT decoding. ## Testing Add regression coverage for empty files, invalid auth fields, and invalid JWT claims. Verify that failures preserve cached tokens, auth change state, and network permits without exposing credential values in errors, and that unauthorized recovery can resume after the file is restored. GitOrigin-RevId: cd26b5a057e68a3e92ebce593cf7c330e26e7703