Flight Log / oven-sh/bun #20755
Add async context tracking to fs.watch — a Cursor (Anysphere) flight by Jarred Sumner
Jarred Sumner (@Jarred-Sumner) opened this Cursor (Anysphere) pull request in oven-sh/bun on Jul 1, 2025; a burn — closed unmerged after human review: +156 −21, 2 files, 0 reviews.
- Lines
- +156 −21
- Files
- 2
- Commits
- 2
- Reviews
- 0
- To merge
- —
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Cursor works on oven-sh/bun, a fix titled Add async context tracking to fs.watch. The change wraps the fs.watch listener with withAsyncContextIfNeeded so AsyncLocalStorage context survives callbacks. The diff spans 156 additions and 21 deletions across two files in two commits. A CI report lists two failures. The PR closed unmerged after human review, a burn.
“<div><sup>Updated 12:17 PM PT - Jul 1st, 2025</sup></div> :x: @Jarred-Sumner, your commit 577fc18fd9ec8938f65a08603750719cfdcbcc77 has 2 failures in [`Build #19524`](https://buildkite.com/bun/bun/builds/19524): <ul><li><a href="https://github.com/oven-sh/bun/blob/577fc18fd9ec8938f65a08603750719cfdcbcc77/test/js/node/http/node-http-backpressure.test.ts"><code>test/js/node/http/node-http-backpressure.test.ts</code></a> - SIGKILL on <a”
— from the review (source)
From the pull request description
### What does this PR do? This PR fixes an issue where `fs.watch` callbacks were losing `AsyncLocalStorage` context in Bun. The `fs.watch` listener is now wrapped with `withAsyncContextIfNeeded` to ensure proper context propagation, aligning its behavior with Node.js and other async operations in B…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedCursor Agent
- —committedJarred-Sumner
- Jul 1, 2025labeledJarred-Sumner
- Jul 3, 2025closedJarred-Sumner
Read next
Cite this flight: AgentRiders Flight Log, oven-sh/bun#20755, record updated Nov 4, 2026, https://agentriders.com/logs/oven-sh/bun/20755/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.