Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

fix(dev): absorb late watcher echoes after a failed prebuild - #69

Merged
kody-bot merged 2 commits into
mainfrom
cursor/kody-dev-prebuild-flake-354f
Oct 15, 2026
Merged

kody-bot merged 2 commits into
mainfrom
cursor/kody-dev-prebuild-flake-354f

Conversation

@kentcdodds

@kentcdodds kentcdodds commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • After a failed kody.dev.prebuild, ignore watcher events for 1.5s so late chokidar/poll echoes cannot restart the rebuild loop.
  • Lengthen the regression test wait accordingly.

Why

Main validate for #68 failed on lts/*: failed prebuild output must not retrigger the rebuild loop saw 4 !== 3 rebuild_start events. That blocked release of #67/#68.

Test plan

  • npm run validate
  • Prebuild test passed 5× locally
  • CI green
  • Bugbot clean
Open in Web Open in Cursor 

Note

Medium Risk
Changes dev file-watching and rebuild scheduling around failed prebuilds; wrong timing could miss edits or still loop, but scope is limited to kody dev.

Reviewed by Cursor Bugbot for commit 016704d. Bugbot is set up for automated code reviews on this repo. Configure here.

Slow CI (lts/*) saw one extra rebuild_start ~1s after a failed prebuild
when chokidar/poll echoes arrived past the 150ms settle window. Ignore
watcher events for 1.5s after failure and lengthen the regression wait.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds

Copy link
Copy Markdown
Owner Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread src/package-app-dev.ts Outdated
Returning false from onChange leaves the poll fingerprint unadvanced so a
real save in the absorb window is seen again after it ends. Soft settle
absorb is unchanged (fingerprint still advances).

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds

Copy link
Copy Markdown
Owner Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 016704d. Configure here.

@kody-bot
kody-bot merged commit 8afea4a into main Oct 15, 2026
7 checks passed
@kody-bot
kody-bot deleted the cursor/kody-dev-prebuild-flake-354f branch October 15, 2026 09:10
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.26.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants