Skip to content

fix(codex): accept Codex 0.150 account plans - #8447

Open
gsimone wants to merge 1 commit into
pingdotgg:mainfrom
gsimone:fix/codex-0150-account-plan
Open

fix(codex): accept Codex 0.150 account plans#8447
gsimone wants to merge 1 commit into
pingdotgg:mainfrom
gsimone:fix/codex-0150-account-plan

Conversation

@gsimone

@gsimone gsimone commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex 0.150.1 can return new account plan types such as self_serve_business_prolite. The provider probe rejected those account/read responses during payload decoding, which made an installed and authenticated Codex provider appear broken.

Extend the existing Codex 0.150 compatibility schemas with the complete current plan type set, regenerate the affected schemas, and map the new Business, Enterprise, and Edu variants to their existing subscription labels. Add regression coverage for decoding each new plan type.

Tests:

  • vp test run packages/effect-codex-app-server/src/schema.test.ts
  • vp test run apps/server/src/provider/Layers/CodexProvider.test.ts
  • vp run --filter effect-codex-app-server typecheck
  • vp run --filter t3 typecheck
  • targeted lint and format checks

Model: gpt-5.6-sol. Harness: pi (openai-codex).

Note

Accept Codex 0.150 account plan types in CodexProvider and PlanType schema

  • Adds new plan type values (self_serve_business_prolite, self_serve_business_usage_based, business, ent26, enterprise_cbp_automation, edu_plus, edu_pro) to the PlanType enum in the generated Codex 0.150 schema and its generator script
  • Updates codexAccountAuthLabel in CodexProvider.ts to map these new plan types to the correct subscription labels (Business, Enterprise, Edu)\n- Adds a test verifying V2GetAccountResponse accepts the new plan types
  • Behavioral Change: accounts with previously unmapped plan types now return a defined label instead of undefined

Macroscope summarized 2821f32.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 16f1589f-acb1-4bbf-8b99-a1c8c4fe62cd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Aug 27, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 2821f32

Macroscope's review found this PR approvable — This is a small, backward-compatible Codex 0.150 compatibility fix that accepts new account plan values and maps them to existing labels. Its runtime effect is limited to preventing valid authenticated provider probes from failing schema decoding, with focused regression coverage.

You can add or adjust custom eligibility rules. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant