Workspace commands (via isWorkspaceCommandId) and standalone terminal commands were dispatched before the useCommandPaletteStore.getState().open guard, causing shortcuts like Mod+W, Mod+[, Mod+] to fire while the command palette dialog was open. Move the palette check to run immediately after resolving the shortcut command, consistent with the guard pattern in ChatView.tsx.