web: chat composer review fixes — real Stop, /close leaves the pane

Address the review of C8/C9: the composer's Stop control now routes to
`chat_interrupt` (`onStop`) instead of the inert submit path, and the smoke
clicks it and asserts the page's own "Stopping the running turn…" notice with
no `Action failed` dialog (captures/63b). Accepting `/close` finishes the
session locally — the running/queued bits clear and the conversation leaves
the pane for the list, mirroring Android's `finishSession` — and the smoke
asserts the select hint returns. A command notice draws the one terminal
glyph (`CHAT_COMMAND_GLYPH`, `>_`) for both states, tinted only; the growing
textarea accounts for its padding and border so six rows are six whole lines;
remove a shadowed duplicate `chatSessionById`. Wording unchanged; every pure
helper and the wire shapes remain unit-tested.

The smoke creates a throwaway session via `/new`, really prompts, really
interrupts and closes it; the operator's session is never prompted.
This commit is contained in:
2026-10-19 07:26:25 +01:00
parent f660078173
commit d9f5ba6f75
6 changed files with 110 additions and 31 deletions
+6 -1
View File
@@ -1666,7 +1666,12 @@ code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-
background: color-mix(in srgb, var(--bad) 16%, var(--surface-2));
}
.chat-command-notice-head { display: flex; gap: 6px; align-items: center; }
.chat-command-notice-glyph { font-size: 12px; color: var(--muted); }
.chat-command-notice-glyph {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
line-height: 1;
color: var(--muted);
}
.chat-command-notice-failed .chat-command-notice-glyph { color: var(--bad); }
.chat-command-notice-label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.chat-command-notice-failed .chat-command-notice-label { color: var(--bad); }