Repository navigation
[3679 by Claude Opus 5.5] Codex: add GPT-6.2 Sol and GPT-6.2 Astra (work on the bundled Codex 0.169.0) - #3681
Conversation
…ing the Fable 5.2 pattern. The Codex CLI stays at 0.169.0. The changed tests pass, plus typechecks for shared, core and the UI. I did not run the full server suite. What changed - Catalog (`packages/shared/src/modelDefinitions.ts`): - GPT-6.2 Astra (`gpt-6.2-astra`) is now first, which makes it the Codex default. It takes over the `astra` alias and the `llm-codex-astra` label. - GPT-6.2 Sol (`gpt-6.2-sol`) is added with alias `gpt62-sol` and label `llm-codex-gpt62-sol`. - Both have `minAgentVersion: '0.169.0'`. - GPT-6 Astra is now a legacy entry with alias `gpt6-astra` and label `llm-codex-gpt6-astra`. GPT-6.1 Sol keeps `gpt61-sol` and becomes legacy too. Both still show up in the settings model list under "Show legacy models". - Recommended models: plan generation and PR review pick their Codex model by the `astra` alias, so they now recommend GPT-6.2 Astra with no other change. - Saved choices: agents saved with GPT-6 Astra or GPT-6.1 Sol as their default are not moved. Their full model IDs still work. GPT-6.1 Terra and GPT-6 Luna are unchanged, and no "pro" variants were added. - Pricing (`pricingService.ts`): Astra 6.2 is $8 input / $40 output per million tokens, Sol 6.2 is $2 / $10. The issue didn't give cache rates, so I took them from OpenRouter's live list on 2026-11-17: cache write $10 / $2.50, cache read $0.40 / $0.10. - Review context budget (`reviewContextBudget.ts`): GPT-6.2 Astra uses 272K, the same as GPT-6 Astra. GPT-6.2 Sol uses 500K, the same as GPT-6.1 Terra. GPT-6.1 Sol's entry is unchanged. - Docs and CHANGELOG: - Updated the Codex section and model table in `agents-and-models.md`. - Added the one sentence about `minAgentVersion` and models missing from a CLI's bundled catalog. - Corrected the stated bundled Codex version from 0.168.0 to 0.169.0. - Added an Unreleased entry to `CHANGELOG.md`. Other pages that mention `llm-codex-astra` still read correctly, so I left them alone. Tests - I updated the tests for model definitions, alias and label resolution, agent config migration, pricing, the context budget, the recommended lists and the legacy grouping in settings. - The changed server suites (96 tests), the related suites that name GPT-6 Astra (154), and the settings and task-details UI tests all pass. - `test/modelAliases.test.ts` ends with `process.exit(0)`, which hides its failures. I ran a copy without that line: my new label test passes, and the 15 failures it shows are the same 15 that a clean `HEAD` copy shows (Antigravity, Vibe and OpenCode cases), so I didn't add any. I captured two screenshots of the Codex card in the AI Agents settings: one with the current models, and one with the legacy models expanded to show GPT-6 Astra and GPT-6.1 Sol.
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 875ae14 Processed 2 comments:
Summary of ChangesI fixed the failing check. The Playwright test Cause: This PR moved GPT-6.1 Sol and GPT-6 Astra into the legacy group, so the Codex card hides them until you click "Show legacy models". The test's sample agent still listed those two as current models. It then waited for a visible "Copy gpt61-sol" button that never appeared, and timed out after 30 seconds. The app was working as intended; the test data was out of date. Fix: I changed only
The existing "Show 2 legacy models" check (GPT-5.5 and GPT-5.4) still holds as written. I ran only this one test file, not the whole Playwright suite; CI reported no other failures. I didn't capture previews because nothing in the app looks different. Review digestRisk-tiered paths
Diff size: 1 file changed, +6/−6 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
…ts-mobile.pw.ts` › "keeps the Playground usable at 320px" now passes locally, along with the other test in that file (2 passed). I fixed the failing check. The Playwright test `e2e/ai-agents-mobile.pw.ts` › "keeps the Playground usable at 320px" now passes locally, along with the other test in that file (2 passed). **Cause:** This PR moved GPT-6.1 Sol and GPT-6 Astra into the legacy group, so the Codex card hides them until you click "Show legacy models". The test's sample agent still listed those two as current models. It then waited for a visible "Copy gpt61-sol" button that never appeared, and timed out after 30 seconds. The app was working as intended; the test data was out of date. **Fix:** I changed only `propr-ui/e2e/ai-agents-mobile.pw.ts`, so its sample agent matches the new Codex lineup: - The default model is now `gpt-6.2-astra`. - The supported models list `gpt-6.2-astra` and `gpt-6.2-sol` in place of `gpt-6-astra` and `gpt-6.1-sol`. The `-high` and `-xhigh` variants moved to `gpt-6.2-astra` as well. - The check now looks for the "Copy gpt62-sol" button. The existing "Show 2 legacy models" check (GPT-5.5 and GPT-5.4) still holds as written. I ran only this one test file, not the whole Playwright suite; CI reported no other failures. I didn't capture previews because nothing in the app looks different. PR: #3681 Comment by: @propr-dev[bot] (ID: 6963195735) Comment by: @github-actions[bot] (ID: 6963196842) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationMerge-ready within the supplied scope, conditional on pending checks completing successfully. The original issue’s acceptance criteria are truncated, so full compliance with those unseen requirements cannot be assessed. ✅ Consistent catalog integration — The new models flow through existing defaults, alias resolution, pricing lookup, and planning/review recommendations without new infrastructure. ✅ Legacy selections preserved — Explicit older model IDs remain available, and added migration and label-resolution tests cover their preservation. ✅ Focused regression coverage — Added tests cover pricing, runtime budgets, recommendations, and legacy-model visibility. This assessment is based on static inspection of the supplied code; no commands or tests were run. Current checks report no failures and five pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Match capacity explanations to valuesIn S2: 🟢 Document runtime-window verificationThe new runtime entries assert 272K and 500K capacities, while the supplied issue evidence demonstrates successful execution only. Recording the server metadata or runtime observation supporting those capacities would make future maintenance easier. This is an evidence-quality follow-up, not a demonstrated defect in the values. ScoreThe change is focused, integrates with existing consumers, and includes relevant regression coverage. No merge blocker was established; readiness remains conditional on pending checks, with the truncated acceptance criteria limiting requirement verification. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix all |
|
✅ Applied the requested follow-up changes in commit 08aefa3
Summary of ChangesI fixed both suggestions in S1: explanations now match the window. The Codex explanation text is now built from the window actually used, so GPT-6.2 Sol and GPT-6.1 Terra say "500K" and the 272K models still say "272K". This also fixes the existing wrong text for Terra. Unknown Codex models get the same treatment in their fallback message. Budget numbers don't change. I checked the other resolvers (Claude Code and unverified runtimes) and their hardcoded "1M", "200K" and fallback text already match the values they use, so I left them alone. New checks in S2: where the window values come from. The code comment above Separate from the requested fixes: these two models are still labelled "runtime-verified" even though their windows weren't actually verified. Fixing that label would be a behaviour change outside S1 and S2, so I didn't make it. There's no visual change, so I made no previews. Review digestRisk-tiered paths
Diff size: 2 files changed, +30/−5 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…extBudget.ts`. The context-budget tests pass (18 of 18) and the shared package typechecks. I fixed both suggestions in `packages/shared/src/reviewContextBudget.ts`. The context-budget tests pass (18 of 18) and the shared package typechecks. **S1: explanations now match the window.** The Codex explanation text is now built from the window actually used, so GPT-6.2 Sol and GPT-6.1 Terra say "500K" and the 272K models still say "272K". This also fixes the existing wrong text for Terra. Unknown Codex models get the same treatment in their fallback message. Budget numbers don't change. I checked the other resolvers (Claude Code and unverified runtimes) and their hardcoded "1M", "200K" and fallback text already match the values they use, so I left them alone. New checks in `test/reviewContextBudget.test.ts` fail on the old code, where Sol 6.2 was described as 272K. **S2: where the window values come from.** The code comment above `CODEX_RUNTIME_WINDOWS` now says plainly that the GPT-6.2 Astra and GPT-6.2 Sol windows were not read from server model metadata or seen at runtime. The only runtime evidence is the 2026-11-17 `codex exec` runs in issue #3679, which ran successfully (exit 0, no metadata warning). The numbers themselves come from the issue's requirements: Astra 6.2 reuses GPT-6 Astra's 272,000 and Sol 6.2 reuses GPT-6.1 Terra's 500,000. The comment also says how to confirm them later: read the server-provided `context_window` from a signed-in Codex session, or check the bundled `models.json` of a Codex release that includes openai/codex#62106. **Separate from the requested fixes:** these two models are still labelled "runtime-verified" even though their windows weren't actually verified. Fixing that label would be a behaviour change outside S1 and S2, so I didn't make it. There's no visual change, so I made no previews. PR: #3681 Comment by: @integry (ID: 6964625354) Model: Claude Opus 5.5
AI Implementation Summary
Closes #3679
Branch:
3679/claude-opus-5-5-codex-add-gpt-6-2-sol-and-20261117-2149-b1kCommits: ✅ Changes committed (c69242d)
AI Processing Completed
Execution Details:
Summary:
I've added GPT-6.2 Astra and GPT-6.2 Sol to the Codex catalog, following the Fable 5.2 pattern. The Codex CLI stays at 0.169.0. The changed tests pass, plus typechecks for shared, core and the UI. I did not run the full server suite.
What changed
Catalog (
packages/shared/src/modelDefinitions.ts):gpt-6.2-astra) is now first, which makes it the Codex default. It takes over theastraalias and thellm-codex-astralabel.gpt-6.2-sol) is added with aliasgpt62-soland labelllm-codex-gpt62-sol.minAgentVersion: '0.169.0'.gpt6-astraand labelllm-codex-gpt6-astra. GPT-6.1 Sol keepsgpt61-soland becomes legacy too. Both still show up in the settings model list under "Show legacy models".Recommended models: plan generation and PR review pick their Codex model by the
astraalias, so they now recommend GPT-6.2 Astra with no other change.Saved choices: agents saved with GPT-6 Astra or GPT-6.1 Sol as their default are not moved. Their full model IDs still work. GPT-6.1 Terra and GPT-6 Luna are unchanged, and no "pro" variants were added.
Pricing (
pricingService.ts): Astra 6.2 is $8 input / $40 output per million tokens, Sol 6.2 is $2 / $10. The issue didn't give cache rates, so I took them from OpenRouter's live list on 2026-11-17: cache write $10 / $2.50, cache read $0.40 / $0.10.Review context budget (
reviewContextBudget.ts): GPT-6.2 Astra uses 272K, the same as GPT-6 Astra. GPT-6.2 Sol uses 500K, the same as GPT-6.1 Terra. GPT-6.1 Sol's entry is unchanged.Docs and CHANGELOG:
agents-and-models.md.minAgentVersionand models missing from a CLI's bundled catalog.CHANGELOG.md.Other pages that mention
llm-codex-astrastill read correctly, so I left them alone.Tests
test/modelAliases.test.tsends withprocess.exit(0), which hides its failures. I ran a copy without that line: my new label test passes, and the 15 failures it shows are the same 15 that a cleanHEADcopy shows (Antigravity, Vibe and OpenCode cases), so I didn't add any.I captured two screenshots of the Codex card in the AI Agents settings: one with the current models, and one with the legacy models expanded to show GPT-6 Astra and GPT-6.1 Sol.
Review digest
Risk-tiered paths
packages/core/src/services/pricingService.ts(+9/−0)packages/shared/src/modelDefinitions.ts(+9/−4)packages/shared/src/reviewContextBudget.ts(+5/−1)propr-ui/src/pages/SettingsPage/AgentCard.tsx(+1/−0)CHANGELOG.md(+12/−0)docs/docs/features/agents-and-models.md(+8/−5)propr-ui/src/pages/SettingsPage/AgentsListSection.test.tsx(+31/−2)propr-ui/src/pages/SettingsPage/modelSelectionHelpers.test.ts(+16/−0)test/configManagerAgents.test.ts(+25/−3)test/modelAliases.test.ts(+16/−1)test/modelDefinitions.test.ts(+25/−6)test/pricingService.test.ts(+16/−0)test/reviewContextBudget.test.ts(+13/−0)Diff size: 13 files changed, +186/−22 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3679.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Codex models: current list
AI Agents configuration, Codex card at desktop width: GPT-6.2 Astra is the default and owns the astra alias, GPT-6.2 Sol (gpt62-sol) follows; GPT-6 Astra and GPT-6.1 Sol are folded into legacy models
Full-size original
Codex models: legacy expanded
Same card with legacy models shown: GPT-6 Astra (gpt6-astra) and GPT-6.1 Sol (gpt61-sol) stay selectable as legacy entries
Full-size original