Skip to content

Commit 83fad5e

Browse files
committed
refac
1 parent c6a1469 commit 83fad5e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lib/components/chat/FileNav.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@
172172
173173
if (terminal && terminal.url !== prevTerminalUrl) {
174174
prevTerminalUrl = terminal.url;
175+
loading = true;
176+
error = null;
177+
entries = [];
175178
(async () => {
176179
// Discover server features (terminal enabled/disabled)
177180
const config = await getTerminalConfig(terminal.url, terminal.key);
@@ -531,6 +534,7 @@
531534
});
532535
533536
if (!handledDisplayFile) {
537+
loading = true;
534538
if (savedPath === '/') {
535539
const rawCwd = await getCwd(terminal.url, terminal.key);
536540
const cwd = rawCwd ? normalizePath(rawCwd) : null;

0 commit comments

Comments
 (0)