web: add chat model picker, agent badges and a preloaded brief

Show the current model under the chat title with an OpenCode-backed picker,
put an agent mark on the right of every chat row, simplify the tool summary to
'N tools', and give the reasoning and tool controls one symmetric hover box.
New chats preload an editable behavior brief, and the activity spinner remains
the turn's single live progress indicator.
This commit is contained in:
2026-10-20 14:58:26 +01:00
parent 6bfe4c8921
commit 4b20be6ea3
7 changed files with 397 additions and 49 deletions
+1 -1
View File
@@ -5177,7 +5177,7 @@ try {
if (!chipInfo) throw new Error("C6: no tool-call chip rendered in the live transcript");
const parsedCount = Number(/(\d+)/.exec(chipInfo.text)?.[1] ?? NaN);
const toolCount = Number.isFinite(parsedCount) ? parsedCount : chipInfo.rows;
const toolLabel = toolCount === 1 ? "1 tool called" : `${toolCount} tools called`;
const toolLabel = toolCount === 1 ? "1 tool" : `${toolCount} tools`;
const toolAria =
toolCount === 1 ? "1 tool call, expand for details" : `${toolCount} tool calls, expand for details`;
if (!chipInfo.text.includes(toolLabel)) {