Skip to content

Conversation

@texodus
Copy link
Member

@texodus texodus commented Jan 25, 2026

This PR fixes an issue which regressed the behavior of draw() to sometimes return early (under heavy conflation). The regression occurred due to a (correct) replacement of a custom Promise-closure-capture Rube Goldberg contraption with Promise.withResolvers, but did not update all access of this change to use the promise field of the returned struct (and was not caught by TypeScript, because it inherits the behavior from JavaScript to no-op await a non-awaitable).

This PR also adds a test which chaos-scrolls and resets to asset that scroll-initiated renders draw the final scroll position consistently. Additionally, a small randomized timeout has been added to other test models to make sure the results are not dependent on timing issues.

@texodus texodus added the bug Concrete, reproducible bugs label Jan 25, 2026
@texodus texodus marked this pull request as ready for review January 25, 2026 04:11
@texodus texodus merged commit 243c1de into master Jan 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants