{{ message }}
Repository navigation
fix(app): apply agent model to new sessions - #38372
Closed
LLawliet444 wants to merge 1 commit into
Closed
LLawliet444 wants to merge 1 commit into
LLawliet444 wants to merge 1 commit into
Conversation
Contributor
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
This was referenced Aug 5, 2026
Contributor
3 tasks done
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 #38333
Type of change
What does this PR do?
Selecting an agent in a new session updated the Local draft model, but left the prompt composer's previously selected model unchanged. The prompt model has higher resolution priority, so the first submitted message could use the stale model rather than the selected agent's configured model.
This change synchronizes the prompt model after selecting an agent in a new session. If the selected agent has no configured model, it clears the stale prompt model so the normal fallback selection applies. A later explicit model selection still updates the prompt model normally.
How did you verify your code works?
bun test --conditions=browser --preload ./happydom.ts src/pages/session/composer/session-composer-controls.test.ts.bun typecheck; the push hook also completed the workspace typecheck successfully.bun run test:unit: 627 tests passed; one existing Arabic i18n parity failure is unrelated to this change.Screenshots / recordings
No visual layout change; this fixes the model selected for a new session.
Checklist