Skip to content

feat(routing): add organization routes to model selectors - #48483

Draft
adamdotdevin wants to merge 2 commits into
v2from
route-models
Draft

feat(routing): add organization routes to model selectors#48483
adamdotdevin wants to merge 2 commits into
v2from
route-models

Conversation

@adamdotdevin

@adamdotdevin adamdotdevin commented Sep 11, 2026

Copy link
Copy Markdown
Member

Issue for this PR

No linked issue. Paired Console PR: https://github.com/anomalyco/opencode-console/pull/2196.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@adamdotdevin
adamdotdevin marked this pull request as draft September 11, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant