refac: Improve banner handling and command visibility in chat UI

This commit is contained in:
Timothy Jaeryang Baek
2025-07-04 20:55:31 +04:00
parent c9e1f454fc
commit db0d2ae6d4
6 changed files with 74 additions and 57 deletions
+5
View File
@@ -125,6 +125,8 @@
let webSearchEnabled = false;
let codeInterpreterEnabled = false;
let showCommands = false;
let chat = null;
let tags = [];
@@ -2083,6 +2085,7 @@
bind:selectedModels
shareEnabled={!!history.currentId}
{initNewChat}
showBanners={!showCommands}
/>
<div class="flex flex-col flex-auto z-10 w-full @container">
@@ -2133,6 +2136,7 @@
bind:codeInterpreterEnabled
bind:webSearchEnabled
bind:atSelectedModel
bind:showCommands
toolServers={$toolServers}
transparentBackground={$settings?.backgroundImageUrl ?? false}
{stopResponse}
@@ -2193,6 +2197,7 @@
bind:codeInterpreterEnabled
bind:webSearchEnabled
bind:atSelectedModel
bind:showCommands
transparentBackground={$settings?.backgroundImageUrl ?? false}
toolServers={$toolServers}
{stopResponse}