From 8a1230a82af80ce6a913dfd2f6283b652431ced8 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Mon, 13 Jul 2026 12:14:12 +1000 Subject: [PATCH] fix(chat): hide the bottom pipeline Stop once the transcript has messages Pipeline sessions showed two Stop buttons once the AI step started producing messages: the thinking-row Stop (added in #874) and the pipeline-stop-area Stop that replaces the composer whenever a pipeline is running. Gate the bottom stop area on the transcript being empty (grouped.length === 0) in addition to the pipeline running. During command-only steps there is no thinking row, so the labeled Stop stays; once messages exist, Stop lives on the thinking row and the normal composer returns in queue mode, letting follow-ups be queued against a running pipeline (the backend already drains them on completion). This also keeps the composer visible on later turns of a completed pipeline session, which previously re-entered the stop-only state. Co-Authored-By: Claude Fable 5 Signed-off-by: Matt Toohey --- .../staged/src/lib/features/sessions/SessionChatPane.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/staged/src/lib/features/sessions/SessionChatPane.svelte b/apps/staged/src/lib/features/sessions/SessionChatPane.svelte index 2a3fd91a..1a0a7209 100644 --- a/apps/staged/src/lib/features/sessions/SessionChatPane.svelte +++ b/apps/staged/src/lib/features/sessions/SessionChatPane.svelte @@ -9,7 +9,9 @@ Features: - Text input always available at the bottom (Cmd/Ctrl+Enter sends, Enter adds a newline) - Send button when idle, Queue button when running; Stop lives on the Thinking row - - While a pipeline runs, the composer is replaced by a labeled Stop button + - While a pipeline runs with an empty transcript, the composer is replaced by + a labeled Stop button; once messages exist, Stop lives on the Thinking row + and the composer queues follow-ups as usual - Message queue: sending while running persists a follow-up for backend drain - Copy button on every message - Tool calls show name + args preview; expand to see output @@ -2063,7 +2065,7 @@
- {#if isPipelineRunning} + {#if isPipelineRunning && grouped.length === 0}