From 2b67942f26c75fdd5a736201517af4ba776bd1c4 Mon Sep 17 00:00:00 2001 From: fUS1ONd Date: Mon, 24 Nov 2025 21:46:51 +0300 Subject: [PATCH] feat(fronted/src/components/MainLayout.vue): Fix context generation after file tree reload --- frontend/src/components/MainLayout.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/MainLayout.vue b/frontend/src/components/MainLayout.vue index 7459934..f5323c6 100644 --- a/frontend/src/components/MainLayout.vue +++ b/frontend/src/components/MainLayout.vue @@ -144,10 +144,6 @@ async function selectProjectFolderHandler() { await loadFileTree(selectedDir); - if (!isFileTreeLoading.value && projectRoot.value) { - debouncedTriggerShotgunContextGeneration(); - } - steps.value.forEach(s => s.completed = false); currentStep.value = 1; addLog(`Project folder selected: ${selectedDir}`, 'info', 'bottom'); @@ -179,6 +175,9 @@ async function loadFileTree(dirPath) { fileTree.value = []; } finally { isFileTreeLoading.value = false; + if (projectRoot.value) { + debouncedTriggerShotgunContextGeneration(); + } checkAndProcessPendingFileTreeReload(); } }