From 10dc3f9cbea09d9d629d62f9d73aa9cdc0f32faf Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Mon, 30 Mar 2026 13:35:39 -0400 Subject: [PATCH] fix: synchronous ToolWindow import + bars to 48px/16px MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tool windows (still closing instantly after every prior fix): - Changed ToolWindow from defineAsyncComponent to direct synchronous import. All 14 tool components now bundled into the main JS chunk. Eliminates async chunk loading as a failure point — if the main bundle loads (which it does, since the main window works), the tool window code is guaranteed to be available. - ToolWindow chunk no longer exists as a separate file Status bar + Monitor bar: - Both set to h-[48px] text-base px-6 (48px height, 16px text) - Matching sizes for visual consistency Co-Authored-By: Claude Opus 4.6 (1M context) --- src/App.vue | 5 +---- src/components/common/StatusBar.vue | 2 +- src/components/terminal/MonitorBar.vue | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3a46f82..e2e914e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,15 +2,12 @@ import { ref, onMounted, onErrorCaptured, defineAsyncComponent } from "vue"; import { useAppStore } from "@/stores/app.store"; import UnlockLayout from "@/layouts/UnlockLayout.vue"; +import ToolWindow from "@/components/tools/ToolWindow.vue"; const MainLayout = defineAsyncComponent({ loader: () => import("@/layouts/MainLayout.vue"), onError(error) { console.error("[App] MainLayout load failed:", error); }, }); -const ToolWindow = defineAsyncComponent({ - loader: () => import("@/components/tools/ToolWindow.vue"), - onError(error) { console.error("[App] ToolWindow load failed:", error); }, -}); const DetachedSession = defineAsyncComponent({ loader: () => import("@/components/session/DetachedSession.vue"), onError(error) { console.error("[App] DetachedSession load failed:", error); }, diff --git a/src/components/common/StatusBar.vue b/src/components/common/StatusBar.vue index 2a44ae2..8d6cd9e 100644 --- a/src/components/common/StatusBar.vue +++ b/src/components/common/StatusBar.vue @@ -1,5 +1,5 @@