diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte
index e79f7cba42..4236e4697d 100644
--- a/src/lib/components/chat/FileNav.svelte
+++ b/src/lib/components/chat/FileNav.svelte
@@ -609,7 +609,14 @@
{selectedFile}
{loading}
onNavigate={loadDir}
- onRefresh={() => loadDir(currentPath)}
+ onRefresh={() => {
+ if (selectedFile) {
+ const fileName = selectedFile.split('/').pop() ?? '';
+ openEntry({ name: fileName, type: 'file', size: 0 });
+ } else {
+ loadDir(currentPath);
+ }
+ }}
onNewFolder={startNewFolder}
onNewFile={startNewFile}
onUploadFiles={handleUploadFiles}
diff --git a/src/lib/components/chat/FileNav/FileNavToolbar.svelte b/src/lib/components/chat/FileNav/FileNavToolbar.svelte
index ccf3eaceac..fcf61c0ef9 100644
--- a/src/lib/components/chat/FileNav/FileNavToolbar.svelte
+++ b/src/lib/components/chat/FileNav/FileNavToolbar.svelte
@@ -81,27 +81,28 @@
{/if}
- {#if !selectedFile}
-
-
+
+
+
+
+
+ {#if !selectedFile}