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

This commit is contained in:
Kit Langton 2026-07-30 15:55:05 -04:00 committed by GitHub
commit 22d2012f75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
]