From 022bae8496d3607aedbb43aefbc9d7ca285e21d1 Mon Sep 17 00:00:00 2001 From: Alessandro <155005371+3clyp50@users.noreply.github.com> Date: Tue, 23 Jun 2026 20:31:23 +0200 Subject: [PATCH] Fix welcome composer idle placeholder overlap Suppress the chat progress ghost placeholder until a chat is selected so the welcome new-chat prompt remains the only visible composer hint. Add a focused static regression for the welcome composer idle-progress overlap case. --- tests/test_welcome_composer_static.py | 6 ++++++ webui/components/chat/input/input-store.js | 1 + 2 files changed, 7 insertions(+) diff --git a/tests/test_welcome_composer_static.py b/tests/test_welcome_composer_static.py index 650836491..f31f6a429 100644 --- a/tests/test_welcome_composer_static.py +++ b/tests/test_welcome_composer_static.py @@ -102,6 +102,12 @@ def test_welcome_composer_can_create_a_chat_before_sending() -> None: assert 'return "arrow_forward";' in input_store +def test_welcome_composer_does_not_overlap_idle_progress_placeholder() -> None: + input_store = _read("webui/components/chat/input/input-store.js") + + assert "!!chatsStore.selected &&\n this._getSendState() !== \"all\"" in input_store + + def test_welcome_composer_buttons_keep_target_geometry_without_glow() -> None: chat_bar = _read("webui/components/chat/input/chat-bar-input.html") mic_css = _read("plugins/_whisper_stt/webui/whisper-stt.css") diff --git a/webui/components/chat/input/input-store.js b/webui/components/chat/input/input-store.js index 2b58732c0..caf6129b8 100644 --- a/webui/components/chat/input/input-store.js +++ b/webui/components/chat/input/input-store.js @@ -91,6 +91,7 @@ const model = { get showProgressPlaceholder() { return ( + !!chatsStore.selected && this._getSendState() !== "all" && !!this.progressText && !this.message