From cf2755a731f45d07dd3eabd3dd67ea7f937da056 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Mon, 16 Feb 2026 01:21:13 -0600 Subject: [PATCH] fix: Scroll chat to bottom immediately on user message send --- frontend/src/components/agent/PromptBar.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/agent/PromptBar.vue b/frontend/src/components/agent/PromptBar.vue index b3379f8..1b0fc14 100644 --- a/frontend/src/components/agent/PromptBar.vue +++ b/frontend/src/components/agent/PromptBar.vue @@ -579,10 +579,9 @@ function handleSessionChange(sessionId: string) { function handleSubmit(text: string) { messages.push({ id: ++idCounter, role: 'user', content: text, status: 'sent' }) + scrollToBottom() emit('submit', text) - // Send text as input to the agent's terminal PTY agentTerminal.sendPrompt(text) - // Real response will arrive via transcript-update WebSocket } function handleMic() { @@ -599,9 +598,9 @@ function handleTranscriptDone(text: string) { if (!text.trim()) return messages.push({ id: ++idCounter, role: 'user', content: text, status: 'sent' }) + scrollToBottom() emit('submit', text) agentTerminal.sendPrompt(text) - // Real response will arrive via transcript-update WebSocket } function toggleSettings() {