From b76575eaccbdec881c0cacaf29a1ebec1dbbf7c3 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Mon, 22 Jun 2026 03:06:52 +0900 Subject: feat(chat): stop generation button — abort without closing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consume the stop-generation handoff (no version bumps, no new types). - App store: stopGeneration() → POST /conversations/:id/stop (fire-and-forget) - Composer: stop button (square, error color) visible only while generating, next to the send/queue button - Existing event flow handles the rest: done with reason 'aborted' clears generating; conversation.statusChanged: idle updates the tab spinner 686 tests green. --- src/app/App.svelte | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/app/App.svelte') diff --git a/src/app/App.svelte b/src/app/App.svelte index 350db49..3024a44 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -195,6 +195,10 @@ store.queueMessage(text); } + function handleStop() { + store.stopGeneration(); + } + function handleSelectModel(model: string) { store.selectModel(model); } @@ -372,6 +376,7 @@