This commit is contained in:
Timothy Jaeryang Baek
2026-02-25 19:58:50 -06:00
parent 58d685eea4
commit eca9b405eb
4 changed files with 76 additions and 30 deletions
+8 -1
View File
@@ -15,7 +15,8 @@
showCallOverlay,
showArtifacts,
showEmbeds,
settings
settings,
showFileNavPath
} from '$lib/stores';
import { uploadFile } from '$lib/apis/files';
@@ -61,6 +62,12 @@
$: hasMessages = history?.messages && Object.keys(history.messages).length > 0;
$: if (!hasMessages && activeTab === 'overview') activeTab = 'controls';
// Auto-switch to Files tab when display_file is triggered
$: if ($showFileNavPath) {
activeTab = 'files';
showControls.set(true);
}
// Attach a terminal file to the chat input
const handleTerminalAttach = async (blob: Blob, name: string, contentType: string) => {
const tempItemId = uuidv4();