Repository navigation
Seed catalog offerings so Anthropic defaults to claude-sonnet-5 (CL-7294) - #599
Merged
TheGreatAxios merged 2 commits intoSep 4, 2026
Conversation
Anthropic currently seeds every model at the same provider-level priority, so localeCompare picks claude-fable-5 over the declared default. A 409 on an existing offering is skipped forever, so a re-seed cannot repair that. These tests pin distinct declared priorities and a GET/PATCH reconcile on conflict.
Flatten CATALOG_SEEDS into one priority sequence so Anthropic claude-sonnet-5 is priority 0 instead of tying with every other Anthropic model. A 409 now lists the existing offering and PATCHes priority when it has drifted.
Contributor
Author
Self-reviewVerdict: the fix correctly flattens offering priorities across providers so Anthropic's declared default gets the lowest distinct priority, and the 409-path GET+PATCH reconciliation matches the actual hub route (cursor-paginated GET, PATCH accepting
Targeted tests run:
|
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.
Fixes CL-7294
Catalog seeding used one priority per provider, so every Anthropic model tied at 0 and runtime
localeComparepickedclaude-fable-5over the declared default. Offerings now get distinct priorities from the flattenedCATALOG_SEEDSorder (claude-sonnet-5is index 0), and a 409 reconciles via GET then PATCH instead of skipping forever.Supersedes #546 (stale
hub-clientbranch; that package is gone on main).