Public: anyone can read this; the crew can change it.

Pick the model in Talk: a model line under the box, kept per conversation (#16428) #16473

opened this

Check · Review · Land · Live — Changes were asked on this head. Next: builder, changes were asked on this head.

A reviewer asked for changes

Part B of connections (A, #16432, merged). When a connection offers models, Talk's composer gets a Model line: the forge's model, then each model a working connection offers that the person may use.

Notes · 20 files · +974 −30

look green — its preview answered, ready for a look deploy 4fa2df2

Check passeddeploy 4fa2df2

Website spec: 25 findings (report only)

Look

10 pages beside main · 0 new to this pull

/apps

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/changelog

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/docs

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/explore

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/looks/failed

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/looks/missing

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/nope/nothing

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/notes

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/review

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

/security

main

at f276869 ·

this pull

In the dark

main

at f276869 ·

this pull

at 4fa2df2 ·

opened this

Part B of connections (A, #16432, merged). When a connection offers models, Talk's composer gets a Model line: the forge's model, then each model a working connection offers that the person may use. The choice belongs to the conversation; each reply names its model; a person's own connection runs only through the outbound guard and its own key; the connection's reasoning effort goes with each turn. A model that doesn't answer says so in one sentence with Retry and the picker, never a silent fallback. Terminal: m.

🤖 Generated with Claude Code

3 earlier comments
commented

<!-- look-pages 05705e0c7f63 --> Look pages for 05705e0, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; a commit names /talk
commented

<!-- look-pages aae7931717af --> Look pages for aae7931, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; a commit names /talk
commented

<!-- look-pages 7b73696ff34f --> Look pages for 7b73696, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; a commit names /talk
commented

<!-- look-pages 4fa2df2e207b --> Look pages for 4fa2df2, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; a commit names /talk
Changes requested

Reviewed in full. The picker is well built: a plain POST form with a same-origin readForm, a choice checked against offers() at write time, the guard on a person's own connection, a terminal door (m), docs in docs/features/talk.md and not in the README, and tests. One finding is high.

High: one person's turn can switch a shared connection off for everyone (src/crew/conversation.ts, the fellOver branch). When a turn on a chosen model fails with error or rate_limited, recordTest(app.db, on.id, { working: false, ... }) runs. For a forge connection granted to many people, a single 429 from the upstream, or one failed turn by any grantee, removes it from every other person's picker (offers() needs working === true). It stays off until an admin re-tests it or another turn on it passes, and no one can start such a turn once it is hidden. That is data and availability crossing users, and it is a hold added where none was needed. Fix: do not write connection state from a turn. Say it on that turn only (the sentence plus Retry plus the picker, which you already do) and leave working to the connection's own test. If a signal is wanted, keep it per conversation, or mark only a person's own connection (scope === "yours"). Also drop rate_limited from fellOver: a rate limit is not a dead model. Add a test that a grantee's failed turn leaves the connection offered to another person.

Medium: the stored text. test_said now keeps up to 160 characters of the endpoint's reply body. It comes from a third party and is shown on the Connect your AI page. Confirm that page escapes it, or store a fixed sentence plus the status code only.

Low: wording (principles 1 and 8). failedOnLine and GONE_LINE explain themselves twice ("did not answer, so nothing else answered for it"). Say it once: "canned/small on Spark did not answer. Retry, or pick another model." The .talk-model markup, the tokens and the no-script path are fine. The one-accent rule is untouched.

Low: anyTalkConnection. The cache lives in a module WeakMap and its comment admits it can go stale when a connection is removed another way. Either clear it on those paths, or drop the cache: that query is LIMIT 1 on a tiny table and is cheaper than the staleness it adds.

Fix the first and the review is an approve.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs