Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Summary

Fixes intermittent flakes in Storybook tests (including TaskWorkflow) during CI cold-start scenarios.

Problem

The waitForChatMessagesLoaded helper in storyPlayHelpers.ts used a 5 second timeout. In CI, the first test(s) can take longer to load due to large dependencies (Shiki, Mermaid) being initialized. This caused failures with the error:

Message: Messages not loaded yet

Example failure in CI run 20416096418 for TaskWorkflow story.

Fix

Bumped timeout from 5s to 15s, matching the fix in App.markdown.stories.tsx (fcecf80) for the same cold-start issue.

Testing

  • make typecheck passes
  • Ran storybook tests 5 times locally, all passed

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

The waitForChatMessagesLoaded helper had a 5s timeout which was too short
for CI cold-start scenarios. When Storybook tests run in CI, the first
test(s) can take longer due to loading large dependencies like Shiki and
Mermaid. The error 'Messages not loaded yet' appeared in CI run 20416096418
for TaskWorkflow story.

Bumped timeout from 5s to 15s to match the fix in App.markdown.stories.tsx
(fcecf80) for the same cold-start issue.

---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_
@ammario ammario merged commit d52e599 into main Dec 23, 2025
19 of 20 checks passed
@ammario ammario deleted the story-workflow-brv8 branch December 23, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants