feat(routing): add organization routes to model selectors - #48483
Draft
adamdotdevin wants to merge 2 commits into
Draft
feat(routing): add organization routes to model selectors#48483adamdotdevin wants to merge 2 commits into
adamdotdevin wants to merge 2 commits into
Conversation
adamdotdevin
marked this pull request as draft
September 11, 2026 15:47
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.
Issue for this PR
No linked issue. Paired Console PR: https://github.com/anomalyco/opencode-console/pull/2196.
Type of change
What does this PR do?
Adds organization routes to the shared model catalog and App/TUI selectors, with stable route IDs, organization-scoped preferences, variable pricing, and the existing ten-minute refresh interval. A native Responses adapter preserves provider continuation state through reasoning and tool history. The variable pricing badge is localized in all 63 supported App locales.
Release this V2 client before the paired Console route catalog. Legacy V1 discovery is excluded.
How did you verify your code works?
After rebasing onto current
v2, using Bun 1.4.2: 1,308 AI tests passed (28 skipped), 100 focused core tests passed, and App catalog/selection/tooltip plus TUI option tests passed. The normal pre-push workspace typecheck passed all 35 tasks. Coverage includes the real config loader, native resolver, HTTP authentication, alias changes, deletion, organization switches, and translated tool continuations. No Bedrock live testing.For the review follow-up: 30 provider/config tests, 4 App catalog/selection/tooltip tests, 9 locale tests, and all 35 workspace typecheck tasks passed. A dictionary audit verified the badge in 63/63 locales and confirmed that the 62 translation additions leave all existing strings unchanged.
Translations use pricing terminology checked against localized KMyMoney, WooCommerce, Google, Apple, Microsoft, and Shopify interfaces plus language dictionaries. Dhivehi, Dzongkha, Lao, and Punjabi merit native review for regional wording; Punjabi uses Shahmukhi. Catalan, Spanish, and French intentionally retain their native cognate "Variable."
Screenshots / recordings
Selectors were validated with local rendered fixtures; no interactive screenshot was captured.
Checklist