Просмотр исходного кода

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

Kit Langton 2 недель назад
Родитель
Сommit
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,
 ]