feat: pick the room model from a catalog dialog

The room model was a free-text field. It now opens a dialog that lists the provider's live catalog through the same adapter a turn uses, with context, output, price, and vision from models.dev. Rows filter by text, vision, or free price, and a custom id remains available when the provider lists nothing.

The dialog is nested over room settings, so BaseDialog now gives Escape and the focus trap to the top dialog only. Clearing the model stores NULL, which returns the room to the provider's default.
This commit is contained in:
vhaudiquet committed 2026-11-28 17:21:48 +01:00
1 parent 2d36790fe1
commit 2216f37422
13 files changed
+724 -20

No files matched your search

+3 -1
View File
@@ -113,7 +113,9 @@ issue certificates.
3. **New room.** Pick the target and provider, give the workspace
directory (for example `/home/me/rooms/demo`), and optionally a git
URL. The workspace is created on the first mention and seeded from
the repository or a README.
the repository or a README. The Model field opens the provider's
model list with context, output, price, and vision. Pick a row, or
type an id the list does not carry.
4. **Invite.** The room's invite dialog creates a single-use link such
as `https://together.example.com/join/<token>`. A friend opens it,
picks a display name, and lands in the room as a guest.