From 70a31a9a57bdd0690ac270f31ebd1b46e8fdfa98 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 7 Mar 2026 16:40:14 -0600 Subject: [PATCH] fix: terminals button ui --- src/lib/components/chat/MessageInput.svelte | 92 +++++++++++---------- 1 file changed, 47 insertions(+), 45 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index f3108abf2..5d5344592 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -1803,59 +1803,61 @@ {/if} - {#if (!history?.currentId || history.messages[history.currentId]?.done == true) && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.stt ?? true))} + {#if !history?.currentId || history.messages[history.currentId]?.done == true} {#if ($terminalServers ?? []).length > 0 || ($settings?.terminalServers ?? []).some((s) => s.url)} {/if} - - - - + + + + + + + {/if} {/if} {#if prompt === '' && files.length === 0 && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.call ?? true))}