feat(app): add model override setting#37087
Open
Frollir wants to merge 1 commit into
Open
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: The search results show PR #37087 (the current PR) appearing in multiple searches, but no other PRs with duplicate or highly related functionality. The other PRs that appeared are about different aspects like provider configuration, variant handling in TUI/desktop, and usage tracking—not about preserving model override selections within a chat session. No duplicate PRs found |
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
Closes #23666
Type of change
What does this PR do?
Adds a General setting to keep the selected model override within the current chat.
Previously, choosing a model override in the composer was effectively one-shot: after sending a message, the selected model/variant could be cleared or restored inconsistently. This change keeps the existing reset behavior by default, but when the new setting is enabled, the selected model and variant are preserved for that chat.
The setting is wired through app settings, both General settings UIs, composer controls, prompt submit handling, and session restore logic.
How did you verify your code works?
Ran from
packages/app:bun test --preload ./happydom.ts ./src/components/prompt-input/submit.test.tsbun run typecheckbun run buildScreenshots / recordings
Checklist