Repository navigation
Conversation
edenreich
marked this pull request as ready for review
November 7, 2026 14:36
Contributor
Author
|
Closing: the model belongs to the agent, not to a top-bar pick. The fix moves to the CLI - a chat opened as a named Markdown agent runs on its front-matter model (fixed), body and tools - with a desktop follow-up that opens agent chats by name and shows the agent's model read-only. Issues to follow. |
This was referenced Nov 7, 2026
Contributor
|
🎉 This PR is included in version 0.55.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
In an agent chat, the top-bar model picker could not change the model.
agentThreadModelruns an agent chat on the agent's front-matter model, but<select id="model-select">showed and set only the global model, so a pick there was silently ignored. In an agent chat the picker now shows the model the chat actually runs on, and picking another one saves it to the agent's front matter, the same as Edit agent. Outside agent chats nothing changes.Changes
frontend/store.tsx:setAgentModel(agent, model)saves the agent with the new model and reloads the agent list. It does not usesaveAgent, which also opens a fresh chat.frontend/components/ModelSelect.tsx: value isagentThreadModel(agent, model).onChangepins the agent's model in an agent chat and keepssetModelotherwise. It is still the native<select>.frontend/components/AgentEditor.tsx: a stored model the gateway does not list (a bare alias likesonnet, a delisted model) stays visible as its own option instead of reading as "Inherit the selected model".The model rule itself is unchanged and stays covered by
frontend/lib/agents.test.ts. The e2e harness has no select step, so this is checked by hand in mock mode.