Skip to content

fix(inbox): respect Codex provider authentication requirements - #3530

Merged
backnotprop merged 4 commits into
backnotprop:mainfrom
qq2514568380:fix/codex-provider-precheck
Nov 21, 2026
Merged

backnotprop merged 4 commits into
backnotprop:mainfrom
qq2514568380:fix/codex-provider-precheck

Conversation

@qq2514568380

Copy link
Copy Markdown
Contributor

Summary

Fixes #3100.

New session currently rejects Codex when codex login status says it is not logged in, even when the selected custom provider reports requiresOpenaiAuth: false and needs no OpenAI account.

When the CLI reports signed out, consult the existing read-only Codex account reader before rejecting the launcher. Reuse the same Codex home and PATH, stop the reader afterward, and preserve the signed-out result if account discovery fails or still requires an absent account. Missing CLI, minimum version and Inbox connection checks remain in place. The regular signed-in path does not add a probe.

This changes launch eligibility, not provider credential validation. The provider can still reject its own credentials at request time.

Added regression cases for a no-OpenAI-auth provider and a failed account read, extending the existing fake CLI. Existing signed-out coverage still checks a provider that requires OpenAI auth.

Validation: TypeScript syntax parsing and git diff --check passed. Tests, builds, real Codex processes, browser checks and live linked-machine checks were not run. This change has only been statically checked.

e2e:

qq2514568380 and others added 4 commits November 16, 2026 17:12
… runs

The account probe now uses the launch check's own environment and its
resolved codex path, so the check and the probe cannot pick different
binaries. The code comments and the launch guide say the probe starts a
short-lived app-server each time the check runs while codex login status
says signed out.
@backnotprop
backnotprop merged commit 333d304 into backnotprop:main Nov 21, 2026
42 checks passed
@backnotprop

Copy link
Copy Markdown
Owner

Thanks for this. Codex with a custom provider that doesn't use OpenAI sign-in was being turned away by the launch check even though it would have started fine, and your fix asks Codex's own account answer before saying no. I pushed a small follow-up so the account probe uses the exact same codex binary the check found, and noted in the docs how often the probe runs. Merged.

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.

Inbox: make the Codex launch precheck respect providers without OpenAI account auth

2 participants