feat: add setting to modify terminal sidebar auto-open behavior

This commit is contained in:
Demietrich Baker 2026-06-01 19:16:23 -07:00
parent 1a97751e37
commit 0f8f6a5155
3 changed files with 23 additions and 1 deletions

View file

@ -102,7 +102,7 @@
$: if ($selectedTerminalId && showFilesTab) {
activeTab = 'files';
if (largeScreen) {
showControls.set(true);
showControls.set($settings?.autoOpenTerminalSidebar ?? true);
}
}

View file

@ -62,6 +62,7 @@
let landingPageMode = '';
let chatBubble = true;
let autoOpenTerminalSidebar = true;
let chatDirection: 'LTR' | 'RTL' | 'auto' = 'auto';
let ctrlEnterToSend = false;
let copyFormatted = false;
@ -241,6 +242,7 @@
landingPageMode = $settings?.landingPageMode ?? '';
chatBubble = $settings?.chatBubble ?? true;
autoOpenTerminalSidebar = $settings?.autoOpenTerminalSidebar ?? true;
widescreenMode = $settings?.widescreenMode ?? false;
splitLargeChunks = $settings?.splitLargeChunks ?? false;
scrollOnBranchChange = $settings?.scrollOnBranchChange ?? true;
@ -721,6 +723,25 @@
</div>
{/if}
<div>
<div class=" py-0.5 flex w-full justify-between">
<div id="auto-open-terminal-sidebar-label" class=" self-center text-xs">
{$i18n.t('Auto-Open Terminal Sidebar')}
</div>
<div class="flex items-center gap-2 p-1">
<Switch
tooltip={true}
ariaLabelledbyId="auto-open-terminal-sidebar-label"
bind:state={autoOpenTerminalSidebar}
on:change={() => {
saveSettings({ autoOpenTerminalSidebar });
}}
/>
</div>
</div>
</div>
<div>
<div class=" py-0.5 flex w-full justify-between">
<div id="widescreen-mode-label" class=" self-center text-xs">

View file

@ -216,6 +216,7 @@ type Settings = {
directConnections?: null;
chatBubble?: boolean;
copyFormatted?: boolean;
autoOpenTerminalSidebar?: boolean;
models?: string[];
conversationMode?: boolean;
speechAutoSend?: boolean;