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.
This commit is contained in:
Alessandro 2026-06-23 20:31:23 +02:00
parent 3fae1f49e7
commit 022bae8496
2 changed files with 7 additions and 0 deletions

View file

@ -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")

View file

@ -91,6 +91,7 @@ const model = {
get showProgressPlaceholder() {
return (
!!chatsStore.selected &&
this._getSendState() !== "all" &&
!!this.progressText &&
!this.message