Skip to content

A model picked on a new message stays picked once a Bot has the conversation - #2929

Merged
davidmckayv merged 1 commit into
mainfrom
fix/model-pick-on-connection
Dec 4, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/model-pick-on-connection

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

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:

  • The person has two AI connections: a ChatGPT plan, their default, whose default is GPT-6.2 Sol (Low unless asked), and a Claude plan, whose default is Claude Opus 5.5.
  • The pick was saved on the Claude plan as { 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.
  • Every run in both conversations answered on Claude Opus 5.5. The pick was not lost. The picker was wrong.
  • The web app read that null model as the default connection's default: GPT-6.2 Sol, at its own Low.

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.

  • The picker shows the model a pick runs on. A pick on a connection with no model named shows that connection's default, at the effort picked (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.
  • A pick made before the Bot is known wins over the Bot's default. Home and a new conversation with nobody in To: now save the pick as it reads against the Bot the message went to (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.
  • A pick left on the default still follows the Bot. Untouched, on Auto, or set back to the default by hand, the Bot's own default runs, as before. A Bot that picks its own model (one connected from outside OpenBot, or one that hands work out) still says so and saves nothing, as before.

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.tsx is 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:

  1. Opus on the Claude plan, at desktop width in light and on a phone in dark: saved as { model: null, effort: "xhigh", connection: "anthropic" }, run on Opus at xhigh, and the conversation's picker says Claude Opus 5.5 · Extra high.
  2. GPT-6.2 Sol at High, handed to a Bot whose default is GPT-6.2 Astra: runs on Sol at High, and the picker says so.
  3. Untouched, handed to that Bot: saves nothing, and runs and shows the Bot's GPT-6.2 Astra.

Cases 1 and 2 fail without the fix and pass with it. Case 3 passes both ways.

the cases above, both engines
without the fix: 8 pass, 6 fail
  case 1 (x4): the picker never says "Claude Opus 5.5, thinking: Extra high"; it says GPT-6.2 Sol · Low
  case 2 (x2): Expected "gpt-6.2-sol high", Received "gpt-6.2-astra null"
with the fix:    14 pass, 0 fail (30 pass, 0 fail for the whole file, screenshots included)

app/tests/model-picker-connections.test.tsx checks the picker against that exact saved pick.

Changelog

Web app.

  • Fixed: a model picked on a new message stays picked once OpenBot hands the message to a Bot. The conversation's picker shows the model its runs answer on, including a model that is its AI connection's own default. A pick made before the Bot was known runs over the Bot's own default model.

…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
davidmckayv added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 20b8f06 Dec 4, 2026
38 checks passed
@davidmckayv
davidmckayv deleted the fix/model-pick-on-connection branch December 4, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant