Repository navigation
feat(models): tell users when a CLI update unlocks a new model #17307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+416
−6
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d346a43
feat(models): tell users when a CLI update unlocks a new model
juliusmarminge 2af8b3e
fix(server): keep update-gated models out of retained snapshot models
juliusmarminge 430a0e7
fix(clients): searching for an update-gated model explains why it is …
juliusmarminge c1ea223
fix(models): address review on update-gated model notices
juliusmarminge da8ec9e
feat(models): gate current Codex models on their minimum CLI version
juliusmarminge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Keep a provider group when it has only gated models.
If a provider has
updateRequiredModelsbut no selectablemodels, this data never reaches aModelOption.groupByProvidertherefore creates no group, and the mobile picker cannot show the update notice. Carry provider-level notice data into groups independently of selectable model options.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not changing this here. Gated models are always current models, so a provider with gated models still has its legacy and other current models in
models, and its group (and notice) exists. The only gap is a provider with zero runnable models of any kind. That would need provider-level groups that exist without options, which is the refactor you flagged as a heavy lift and is out of scope for this PR. The outside-diff finding (a remembered selection that becomes gated stayed selectable on mobile) is fixed in dccb5ed: that row is now marked unavailable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juliusmarmingeThanks for the clarification. When a provider retains legacy or other current models, its group already carries the update notice. I overstated the impact of this finding.The remaining gap applies only to providers with zero runnable models. I accept that option-independent provider groups are outside this PR’s scope.
The supplied code also confirms that a remembered selection listed in
updateRequiredModelsnow receivesisUnavailable: true.Would you like a follow-up issue for the zero-runnable-model case?
✏️ Learnings added
You are interacting with an AI system.