fix(codex): prevent transient managed-auth onboarding (#11731)

* fix(codex): gate terminal spawn on managed auth readiness

* fix(codex): recover unavailable managed auth safely

---------

Co-authored-by: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
This commit is contained in:
Neil
2026-07-31 14:40:46 -07:00
committed by GitHub
co-authored by Brennan Benson
parent 7d24dad48a
commit 9f30a780f5
12 changed files with 1289 additions and 62 deletions
+1
View File
@@ -8,6 +8,7 @@ afterEach(() => {
describe('isCodexAuthError', () => {
it('matches Codex authentication refresh failures', () => {
expect(isCodexAuthError('Access token could not be refreshed')).toBe(true)
expect(isCodexAuthError('Sign in with ChatGPT')).toBe(true)
expect(isCodexAuthError('plain provider error')).toBe(false)
expect(isCodexAuthError(null)).toBe(false)
})