Skip to content

fix: automatically recover from corrupted auth.json#173

Merged
AlexandrSuhinin merged 1 commit into
mainfrom
suhinin/recover-outdated-auth
Jun 3, 2026
Merged

fix: automatically recover from corrupted auth.json#173
AlexandrSuhinin merged 1 commit into
mainfrom
suhinin/recover-outdated-auth

Conversation

@AlexandrSuhinin
Copy link
Copy Markdown
Collaborator

No description provided.

@AlexandrSuhinin AlexandrSuhinin requested a review from ishulgin June 3, 2026 12:19
const codexAppServerClient = fixture.getCodexAppServerClient();
vi.spyOn(codexAcpClient, "authRequired").mockResolvedValue(false);

const errorMessage = `Internal error: "failed to reload config: Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."`;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded & non-internationalized constant from codex.
codex-rs/login/src/auth/manager.rs:89

@AlexandrSuhinin AlexandrSuhinin merged commit dec41b6 into main Jun 3, 2026
4 checks passed
@AlexandrSuhinin AlexandrSuhinin deleted the suhinin/recover-outdated-auth branch June 3, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants