diff --git a/src/platform/keybindings/keybindingService.ts b/src/platform/keybindings/keybindingService.ts index cb335fe52..f8c822273 100644 --- a/src/platform/keybindings/keybindingService.ts +++ b/src/platform/keybindings/keybindingService.ts @@ -126,6 +126,12 @@ export function useKeybindingService() { } const newBindings = settingStore.get('Comfy.Keybinding.NewBindings') for (const keybinding of newBindings) { + if ( + isCloud && + keybinding.commandId === 'Workspace.ToggleBottomPanelTab.logs-terminal' + ) { + continue + } keybindingStore.addUserKeybinding(new KeybindingImpl(keybinding)) } } diff --git a/src/stores/workspace/bottomPanelStore.ts b/src/stores/workspace/bottomPanelStore.ts index 6c1060663..6fef5c925 100644 --- a/src/stores/workspace/bottomPanelStore.ts +++ b/src/stores/workspace/bottomPanelStore.ts @@ -121,11 +121,15 @@ export const useBottomPanelStore = defineStore('bottomPanel', () => { const registerCoreBottomPanelTabs = async () => { // Use __DISTRIBUTION__ directly for proper dead code elimination if (__DISTRIBUTION__ !== 'cloud') { - const { useLogsTerminalTab, useCommandTerminalTab } = - await import('@/composables/bottomPanelTabs/useTerminalTabs') - registerBottomPanelTab(useLogsTerminalTab()) - if (isElectron()) { - registerBottomPanelTab(useCommandTerminalTab()) + try { + const { useLogsTerminalTab, useCommandTerminalTab } = + await import('@/composables/bottomPanelTabs/useTerminalTabs') + registerBottomPanelTab(useLogsTerminalTab()) + if (isElectron()) { + registerBottomPanelTab(useCommandTerminalTab()) + } + } catch (error) { + console.error('Failed to load terminal tabs:', error) } } useShortcutsTab().forEach(registerBottomPanelTab)