From 4615d30a61cbf39a6ed1ed1e152b8edf73e4dd72 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 5 Nov 2026 22:16:14 +0900 Subject: [PATCH] refac --- src/lib/components/chat/ChatTabs.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/ChatTabs.svelte b/src/lib/components/chat/ChatTabs.svelte index cf782abb81..9c367b983a 100644 --- a/src/lib/components/chat/ChatTabs.svelte +++ b/src/lib/components/chat/ChatTabs.svelte @@ -829,7 +829,7 @@ $: if (mounted && !fullWidth && $showTabs === true && !tabs.tabs.length) { const options = [ ...availableViews - .filter((view) => view.available) + .filter((view) => view.available && view.kind !== 'side') .map((view) => () => { if (view.kind === 'files') openFiles(); else openFeature(view.kind as 'artifacts' | 'preview' | 'voice' | 'comments' | 'side'); @@ -841,7 +841,7 @@ ]; if (terminalFilesAvailable || (!hasOpenedTabs && showFilesTab)) openFiles(); else if (options.length === 1) options[0](); - else if (!options.length) showTabs.set(false); + else if (!options.length && !canSideChat) showTabs.set(false); hasOpenedTabs = true; } $: if (