From d3f616f8e70c190f348490bdc2cb4c6fa4af2b2a Mon Sep 17 00:00:00 2001 From: bymyself Date: Sun, 1 Feb 2026 16:59:19 -0800 Subject: [PATCH] fix: register shortcuts tabs synchronously before async terminal import Amp-Thread-ID: https://ampcode.com/threads/T-019c17e3-96d4-754b-8a41-9257d73720f1 --- src/stores/workspace/bottomPanelStore.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/workspace/bottomPanelStore.ts b/src/stores/workspace/bottomPanelStore.ts index 6fef5c925..7176637e4 100644 --- a/src/stores/workspace/bottomPanelStore.ts +++ b/src/stores/workspace/bottomPanelStore.ts @@ -119,6 +119,9 @@ export const useBottomPanelStore = defineStore('bottomPanel', () => { } const registerCoreBottomPanelTabs = async () => { + // Register shortcuts tabs first (synchronous, always available) + useShortcutsTab().forEach(registerBottomPanelTab) + // Use __DISTRIBUTION__ directly for proper dead code elimination if (__DISTRIBUTION__ !== 'cloud') { try { @@ -132,7 +135,6 @@ export const useBottomPanelStore = defineStore('bottomPanel', () => { console.error('Failed to load terminal tabs:', error) } } - useShortcutsTab().forEach(registerBottomPanelTab) } const registerExtensionBottomPanelTabs = (extension: ComfyExtension) => {