fix(migration): stop rewriting explicit gpt-5.3-codex to gpt-5.4 (#3777)#4263
Open
YOMXXX wants to merge 1 commit into
Open
fix(migration): stop rewriting explicit gpt-5.3-codex to gpt-5.4 (#3777)#4263YOMXXX wants to merge 1 commit into
YOMXXX wants to merge 1 commit into
Conversation
…e-yeongyu#3777) `openai/gpt-5.3-codex` is the codex-series powerhouse still recommended in docs/guide/agent-model-matching.md and listed in the default fallback chain in docs/reference/configuration.md, not a deprecated alias for `gpt-5.4`. The migration entry silently rewrote any user config that picked `gpt-5.3-codex` for its token efficiency, sending agents to a non-codex model on every startup. Drop the bogus mapping from MODEL_VERSION_MAP and add a regression test that explicit `gpt-5.3-codex` selections (including in nested fallback_models) survive `migrateModelVersions`. Users already auto-migrated previously can revert to `gpt-5.3-codex` by hand and it will now stick on subsequent loads regardless of the sidecar history.
Contributor
|
All contributors have signed the CLA. Thank you! ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: This PR removes a single incorrect mapping from MODEL_VERSION_MAP that was silently rewriting explicit user selections of gpt-5.3-codex to gpt-5.4, and all 150+ existing tests plus new regression tests pass, making it impossible for this change to introduce any regressions.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #3777.
openai/gpt-5.3-codexis the codex-series model still recommended indocs/guide/agent-model-matching.md("Still the deep-coding powerhouse. Kept as an explicit override option.") and listed in the default fallback chain indocs/reference/configuration.md. It is not a deprecated alias forgpt-5.4— the two are different products (one is codex-tuned, the other is the newer general model).MODEL_VERSION_MAPinsrc/shared/migration/model-versions.tscarried"openai/gpt-5.3-codex": "openai/gpt-5.4", somigrateConfigFile()silently rewrote any user that pickedgpt-5.3-codexfor its token efficiency on every config load. The owner's confirmation comment on #3777 already noted "the bug is in config migration rather than runtime model resolution" — runtime can still acceptgpt-5.3-codexwhen passed through directly, the migration was rewriting it before runtime ever saw it.Changes
gpt-5.3-codex → gpt-5.4entry fromMODEL_VERSION_MAP.MAP["openai/gpt-5.3-codex"] === "openai/gpt-5.4"into a.toBeUndefined()regression guard, plus a positive assertion thatgpt-5.4 → gpt-5.5still maps.migrateModelVersionstest that explicitgpt-5.3-codexselections (including in nestedfallback_models) survive migration.Compatibility
gpt-5.3-codex._migrationsentries still match by string and the existing fix: normalize runtime agent names in delegate-task #3263 sidecar tests (migration.test.ts1374–1499) cover this path without change. I re-ran them: all green.Test plan
bun test src/shared/migration.test.ts— 86 pass / 0 failbun test src/shared/migration/config-migration.test.ts src/shared/migration/migrations-sidecar.test.ts src/shared/migration/agent-names.test.ts— 24 pass / 0 failbun test src/plugin-config.test.ts— 40 pass / 0 failmigrateModelVersionsbehaviour:MODEL_VERSION_MAP["openai/gpt-5.3-codex"]isundefinedopenai/gpt-5.3-codexconfigs pass through unchangedanthropic/claude-opus-4-5still migrates toanthropic/claude-opus-4-7Summary by cubic
Stop rewriting explicit
openai/gpt-5.3-codexselections toopenai/gpt-5.4during config migration so users keep the codex variant they chose. Fixes #3777.openai/gpt-5.3-codex→openai/gpt-5.4entry fromMODEL_VERSION_MAP.gpt-5.3-codexis preserved (including in nestedfallback_models) and thatopenai/gpt-5.4still migrates toopenai/gpt-5.5.Written for commit d788c3d. Summary will update on new commits. Review in cubic