fix(coding-agent): naturally sort scoped model catalog - #7690
Closed
Omzig wants to merge 1 commit into
Closed
Conversation
Contributor
|
This PR was auto-closed. Only contributors approved with Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply. If a maintainer replies See CONTRIBUTING.md. |
Author
|
i think this is a duplicate, pi didnt commit all the change, here is the good one: #7692 |
This was referenced Aug 5, 2026
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
Make both interactive model selectors easier to navigate when providers expose context-window variants.
What changed
Share a natural model-ID comparator between
/modeland/scoped-models.Sort model IDs case-insensitively with numeric awareness.
Keep canonical model IDs before their context aliases.
Sort numeric context aliases by actual size, so variants appear as:
gpt-5.6-lunagpt-5.6-luna@200kgpt-5.6-luna@1mPreserve the explicit order of enabled models in
/scoped-models; Alt+Up/Alt+Down still controls that order.Sort the remaining available catalog predictably in
/scoped-models.Apply the same provider-and-model ordering to the all-model
/modelselector.Preserve existing search and enable/disable behavior.
The comparator is provider-agnostic and applies to any model IDs using numeric
@...kor@...mcontext suffixes, not only GitHub Copilot models.Why
GitHub Copilot discovery now exposes multiple context-tier aliases for many models. The previous selectors displayed newly discovered models in provider/catalog order, and lexical ordering placed
@1mbefore@200k. The two selectors could also present different orders, making variants difficult to find and compare.Validation
/scoped-modelsordering and/modelall-model ordering.npm run check: passed../test.shwas attempted; unrelated Windows/environment failures occurred in workspace startup, Unix socket, path-normalization, provider setup, and missing built workspace artifact tests.