Repository navigation
A model picked on a new message stays picked once a Bot has the conversation - #2929
Merged
Merged
Conversation
…rsation A pick of Claude Opus 5.5 on a Claude plan, beside a ChatGPT default, ran on Opus but the conversation's picker said GPT-6.2 Sol: the server keeps a model that is its connection's own default as null on that connection, and the picker read null as the default connection's default. It now shows that connection's default. A pick made before OpenBot knew the Bot was saved against the catalogue's default, so the default model at another effort was kept as "the default" and a Bot's own default model replaced it. It is now saved against the Bot's default, naming the model outright where it has to.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 10:14
9 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.
What and why
Reported from dogfooding: on a new message, a person picked Claude Opus 5.5 at Extra high. OpenBot handed the message to General Assistant, and the conversation's picker then said GPT-6.2 Sol · Low. They asked two things: did the Opus pick get lost, and why does the picker change at all?
What their conversations on OpenBot Cloud show:
{ model: null, effort: "xhigh", connection: "anthropic" }. The server keeps a picked model that is its connection's own default as null (ModelChoice), and runs that default on that connection.The same class of problem, found by reading the code. A new message's pick was saved against the catalogue's default, before OpenBot knew which Bot would answer. A pick of the default model at another effort (GPT-6.2 Sol at High, say) was kept as "the default". Then a Bot with its own default model (GPT-6.2 Astra, say) replaced it once the conversation was the Bot's, in the run and in the picker.
The fix
Web app only. No API or server change.
shownPick,app/src/lib/models/effort.ts). A stopped connection's pick with no model named is shown on that connection too, instead of moving to the default.usePickedBotModel,app/src/lib/models/run-model.ts). Against a Bot's default, the default model is named outright (pinModel, already in the API). Nothing is saved only when the pick is the Bot's default itself.How the leaders do it
Most of them keep the person's explicit pick for the conversation, and treat an assistant's own model as a starting default:
This change does what most of them do: the Bot's default is where a conversation starts, and the person's pick, once made, is what runs and what the picker shows.
Tests
app/tests/new-conversation-picked-model.test.tsxis a real-browser test in Chromium and WebKit, already in CI's real-browser list. It drives the app's own new-conversation and conversation routes. Its server now keeps a pick the way the real server does: a model that is its connection's default is kept as null, unless pinned, and a run answers on the connection a pick names, or else the Bot's default, or else the default. New cases, with the person's two plans:{ model: null, effort: "xhigh", connection: "anthropic" }, run on Opus at xhigh, and the conversation's picker says Claude Opus 5.5 · Extra high.Cases 1 and 2 fail without the fix and pass with it. Case 3 passes both ways.
app/tests/model-picker-connections.test.tsxchecks the picker against that exact saved pick.Changelog
Web app.