chore: remove the Show Files on Terminal Select setting (#33855)

This commit is contained in:
G30 authored and GitHub committed 2026-11-07 16:47:42 +09:00
1 parent 22bce6021e
commit def1d048bc
8 files changed
+1 -53

No files matched your search

@@ -4,9 +4,7 @@
import {
chatId as activeChatId,
config,
mobile,
settings,
showTabs,
showSettings,
terminalServers,
selectedTerminalId,
@@ -24,7 +22,6 @@
export let show = false;
export let disabled = false;
export let fullWidthTabs = false;
const chatContext = (terminal: any) => terminal?.contexts?.chat ?? {};
@@ -70,9 +67,6 @@
const selectDirect = async (terminal: (typeof directTerminals)[0]) => {
const newId = $selectedTerminalId === terminal.url ? null : terminal.url;
selectedTerminalId.set(newId);
if (newId && !$mobile && !fullWidthTabs) {
showTabs.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
}
// Enable the selected direct terminal, disable all others
const updatedServers = ($settings?.terminalServers ?? []).map((s) => ({
@@ -94,9 +88,6 @@
const selectSystem = async (terminal: (typeof systemTerminals)[0]) => {
const newId = $selectedTerminalId === terminal.id ? null : terminal.id;
selectedTerminalId.set(newId);
if (newId && !$mobile && !fullWidthTabs) {
showTabs.set(($settings?.showFilesOnTerminalSelect ?? true) ? 'files' : false);
}
// Disable all direct terminals when switching to a system terminal
if ($settings?.terminalServers?.some((s) => s.enabled)) {