Skip to content

Pick the model on the home composer - #1725

Merged
davidmckayv merged 2 commits into
mainfrom
feat/home-model-picker
Nov 16, 2026
Merged

davidmckayv merged 2 commits into
mainfrom
feat/home-model-picker

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

The home composer ("OpenBot picks the right Bot") now has the model picker. Until now it only appeared in a new conversation once one Bot was chosen in To:, so a fresh home screen had no way to pick a model.

  • The picker starts on the catalogue default, using the same ModelPicker, modelCatalogueQueryOptions and useDraftModel as channel/new.tsx.
  • The pick is saved with the conversation the Bot answers in, before the first message runs, through the same start / startChosen path channel/new.tsx uses. This covers a routed message, an @-chosen Bot and a starter suggestion.
  • The Bot is not known until the message is routed, so whether it takes a model pick is checked then. whyNoModelChoice in lib/bot-agents/queries.ts applies the rule of useBotTakesModelChoice once instead of watching it.
  • A Bot that hands work to agents, or runs on its own agent, takes no pick. The pick is not saved for it, and a one-line notice says so with an "Open Agents" button to that Bot's Agents page:
    • "Ops Bot hands work to agents, so it uses the model set on its Agents page."
    • "Ops Bot runs on its own agent, so it doesn't use the model you picked."
  • Nothing is saved, and nothing is said, while the pick is the default.

No API change.

Tests

app/tests/home-model-picker.test.tsx drives the real home route, composer, picker, routing, start sequence and run, with only fetch faked. Both cases fail on main, where the home composer has no picker, and pass here:

  • A pick made on home starts on the catalogue default and is saved with the routed Bot's conversation before it runs: route, create, save, run.
  • A routed Bot that hands work to agents gets no save (route, create, run), and the notice's "Open Agents" button opens its Agents page.

Checks

  • bun run typecheck (app)
  • bun run lint
  • bun test app: 4196 pass, 0 fail

The model picker only appeared once one Bot was chosen in a new conversation, so the home screen, where OpenBot picks the Bot, had none. It now starts on the catalogue default and the pick is saved with the conversation the routed (or @-chosen) Bot answers in, before the first message runs, the same way a new conversation saves it.

A Bot that hands work to agents, or runs on its own agent, takes no model pick. The pick is not saved for it, and a one-line notice says so with a button to that Bot's Agents page.
A pick on the home composer starts on the catalogue default and is saved with the routed Bot's conversation before its first message runs. A routed Bot that hands work to agents gets no save, and the notice opens its Agents page.
@davidmckayv
davidmckayv force-pushed the feat/home-model-picker branch from 2ad2420 to e970cb3 Compare November 16, 2026 21:04
@davidmckayv
davidmckayv merged commit 682810c into main Nov 16, 2026
16 checks passed
@davidmckayv
davidmckayv deleted the feat/home-model-picker branch November 16, 2026 21:28
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