This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-22 08:18:38 -04:00
1 parent 302ffc8b7e
commit d7d935275a
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -1175,6 +1175,7 @@
const lastSlash = filePath.lastIndexOf('/');
const dir = lastSlash > 0 ? filePath.substring(0, lastSlash + 1) : '/';
invalidateTreeCache(dir);
if (selectedFile) {
if (selectedFile === filePath || currentPath.startsWith(dir)) {
@@ -1183,7 +1184,7 @@
}
} else {
if (currentPath.startsWith(dir) || dir.startsWith(currentPath)) {
await loadDir(currentPath, { preserveTree: true });
await refreshBrowser();
}
}
});
@@ -35,6 +35,7 @@
user as _user,
showControls,
showSettings,
showFileNavDir,
selectedTerminalId,
TTSWorker,
temporaryChatEnabled
@@ -946,6 +947,7 @@
fileItem.size = uploadedFile.size ?? file.size;
fileItem.file = uploadedFile;
files = files;
showFileNavDir.set(uploadedFile.path);
} else {
fileItem.status = 'error';
fileItem.error = $i18n.t('Failed to upload file.');