Add AI model quick-select to app menu and injectable model config#2461
Open
Mbeaulne wants to merge 1 commit into
Open
Add AI model quick-select to app menu and injectable model config#2461Mbeaulne wants to merge 1 commit into
Mbeaulne wants to merge 1 commit into
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 26, 2026
Collaborator
Author
8 tasks
33a0c52 to
5311d23
Compare
1cbbab5 to
3df9bcc
Compare
5311d23 to
4a6b557
Compare
4a6b557 to
e0afa9f
Compare
8 tasks
e0afa9f to
83fb4a0
Compare
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.

Description
Adds an AI model quick-select dropdown to the app header that appears once AI provider settings are configured. The selector lets users switch between models without navigating to the settings page.
A new
aiModelsconfig module centralises the list of available model options and the default model ID. Host pages can override both by settingwindow.__TANGLE_AI_MODELS__before the app loads, allowing proxy deployments to expose their own model catalogue instead of the built-in OpenAI model list.The Agent Settings model field is also improved: the freeform text input now sits alongside a dropdown populated from the same model options list, the placeholder reflects the configured default model ID, and the field stays in sync when the stored config is updated from another control (e.g. the new header selector).
Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
window.__TANGLE_AI_MODELS__ = { defaultModel: "proxy-frontier", models: [{ id: "proxy-frontier", label: "Proxy frontier" }] }in the browser console before loading the page and confirm the custom model list appears in both the header selector and the settings dropdown.Additional Comments
The
window.__TANGLE_AI_MODELS__injection point is intentionally read at call time rather than cached, so tests can set and clear it between cases without module-level side effects.