We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb99a07 commit 6595f11Copy full SHA for 6595f11
src/browser/stories/App.bash.stories.tsx
@@ -63,7 +63,10 @@ async function expandAllBashTools(canvasElement: HTMLElement) {
63
}
64
65
66
- // Avoid leaving focus on a tool header (some components auto-focus inputs on timers)
+ // Avoid leaving focus on a tool header.
67
+ // ChatInput also auto-focuses on a 100ms timer on mount/workspace changes; wait for
68
+ // that to fire before blurring so Storybook screenshots are deterministic.
69
+ await new Promise((resolve) => setTimeout(resolve, 150));
70
(document.activeElement as HTMLElement | null)?.blur?.();
71
72
0 commit comments