chore(cli): update Bun to 1.4.0 - #13409
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (13 files)
Reviewed by grok-4.6 · Input: 90.5K · Output: 20.9K · Cached: 663.7K Review guidance: REVIEW.md from base branch |
marius-kilocode
enabled auto-merge
August 25, 2026 10:53
iscekic
approved these changes
Aug 25, 2026
iscekic
left a comment
Collaborator
There was a problem hiding this comment.
Approved, bot remarks below, feel free to ignore
This was referenced Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Bun 1.3.14 forced the compiled CLI release build to disable code splitting because Bun generated invalid cross-chunk re-exports. The workaround duplicated shared modules across CLI entry points and prevented the release build from using Bun's newer compiler improvements.
The Bun 1.4.0 upgrade removes that limitation and keeps local, CI, and release builds on one supported runtime.
Why This Change Was Made
splitting: truefor compiled CLI targets.User Impact
bun devEvidence
Measurements use the same macOS ARM64 worktree and cached build inputs. The baseline uses Bun 1.3.14 with the required workaround; the updated build uses Bun 1.4.0 with code splitting enabled.
The first CI run exposed a Bun 1.4.0 stream-cancellation difference in
provider/header-timeout.test.ts. The fix handles the rejectedreader.cancel()promise in both SSE wrappers while preserving the timeout and abort behavior. After that fix and a merge frommain, all required Linux, macOS, and Windows CI checks passed.The published PR also includes the required Bun 1.4.0 FFI and process-type compatibility shims, plus the coordinated package quarantine exception for the newly released Bun type packages.