Skip to content

fix(morph): keep the shared loop alive when one morph throws - #5

Merged
DoodleBears merged 1 commit into
mainfrom
fix/shared-loop-isolation
Oct 5, 2026
Merged

DoodleBears merged 1 commit into
mainfrom
fix/shared-loop-isolation

Conversation

@DoodleBears

Copy link
Copy Markdown
Contributor

Requested by Vain

Before: if one morph threw while drawing a frame, the shared rAF loop stopped for every other morph, and no later morph could restart it. A morph started from inside a frame could also start a second frame chain.

After: a morph that throws is dropped, its error is rethrown asynchronously, and the other morphs keep animating. While the loop is running, only the loop itself schedules the next frame.

This mirrors the fix from the BotHarness #861 review of its line-morph loop. No release is needed yet; it can ship with the next one.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 112d6807-e901-4725-b2ac-0cd0338fc645
📥 Commits

Reviewing files that changed from the base of the PR and between c80cb04 and 7c30f8d.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • packages/morph/src/index.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DoodleBears DoodleBears self-assigned this Oct 5, 2026
@DoodleBears
DoodleBears merged commit df53fc8 into main Oct 5, 2026
2 checks passed
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.

1 participant