From 83fad5e9f7e83aab396193e48ccb202b01f062bc Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 9 Mar 2026 18:45:33 -0500 Subject: [PATCH] refac --- src/lib/components/chat/FileNav.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte index 81ee750a22..34da5272d7 100644 --- a/src/lib/components/chat/FileNav.svelte +++ b/src/lib/components/chat/FileNav.svelte @@ -172,6 +172,9 @@ if (terminal && terminal.url !== prevTerminalUrl) { prevTerminalUrl = terminal.url; + loading = true; + error = null; + entries = []; (async () => { // Discover server features (terminal enabled/disabled) const config = await getTerminalConfig(terminal.url, terminal.key); @@ -531,6 +534,7 @@ }); if (!handledDisplayFile) { + loading = true; if (savedPath === '/') { const rawCwd = await getCwd(terminal.url, terminal.key); const cwd = rawCwd ? normalizePath(rawCwd) : null;