瀏覽代碼

fix(tui): register storybook only for story runs (#39733)

Kit Langton 2 周之前
父節點
當前提交
22d2012f75
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/tui/src/plugin/builtins.ts

+ 3 - 1
packages/tui/src/plugin/builtins.ts

@@ -18,6 +18,8 @@ export const builtins = [
   SidebarFooter,
   Notifications,
   Plugins,
-  Storybook,
+  // The storybook is a development tool; keep its route and palette commands out of
+  // normal launches and register it only for OPENCODE_STORY runs.
+  ...(process.env.OPENCODE_STORY ? [Storybook] : []),
   DiffViewer,
 ]