From c33a2011c48a062ecb9bc4cb0586a818b4f07bb0 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 06:51:04 +0800 Subject: [PATCH] fix(app): prevent command palette first-open flash (#35858) --- packages/app/src/components/dialog-select-file.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/app/src/components/dialog-select-file.tsx b/packages/app/src/components/dialog-select-file.tsx index d7c6c2a84f..905abe1e2d 100644 --- a/packages/app/src/components/dialog-select-file.tsx +++ b/packages/app/src/components/dialog-select-file.tsx @@ -20,14 +20,11 @@ import { uniqueCommandPaletteEntries, type CommandPaletteEntry, } from "./command-palette" +import { DialogCommandPaletteV2 } from "./dialog-command-palette-v2" const DialogSelectFileV2 = lazy(() => import("./dialog-select-directory-v2").then((module) => ({ default: module.DialogSelectDirectoryV2 })), ) -const DialogCommandPaletteV2 = lazy(() => - import("./dialog-command-palette-v2").then((module) => ({ default: module.DialogCommandPaletteV2 })), -) - type DialogSelectFileMode = "all" | "files" export function DialogSelectFile(props: { mode?: DialogSelectFileMode; onOpenFile?: (path: string) => void }) {