mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-10 01:18:29 +00:00
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:
parent
3fae1f49e7
commit
022bae8496
2 changed files with 7 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ const model = {
|
|||
|
||||
get showProgressPlaceholder() {
|
||||
return (
|
||||
!!chatsStore.selected &&
|
||||
this._getSendState() !== "all" &&
|
||||
!!this.progressText &&
|
||||
!this.message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue