Skip to content

Commit 3c991b9

Browse files
committed
fix: isolate InteractiveDemo story state from other stories
The InteractiveDemo play test was failing because it shared persisted state with other stories (via the shared 'storybook-demo' workspaceId). When DifferentModels runs first and sets thinking to 'medium' for Opus 4.5, the InteractiveDemo story inherits that state. Fix by giving InteractiveDemo its own unique workspaceId to ensure test isolation. Change-Id: I31bc0c6a2fc21a9a0084b966ce047422ce91339d Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 7812591 commit 3c991b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/browser/components/ThinkingSlider.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ export const DifferentModels: Story = {
7575
};
7676

7777
export const InteractiveDemo: Story = {
78+
// Use unique workspaceId to isolate state from other stories
79+
decorators: [
80+
(Story) => (
81+
<ThinkingProvider workspaceId="storybook-interactive-demo">
82+
<Story />
83+
</ThinkingProvider>
84+
),
85+
],
7886
render: () => (
7987
<div className="bg-dark flex min-w-80 flex-col gap-[30px] p-10">
8088
<div className="text-bright font-primary mb-2.5 text-[13px]">

0 commit comments

Comments
 (0)