anomalyco / anomalyco/opencode
[FEATURE]: Upgrade bundled Bun from 1.3.14 to 1.4.2
@jlongster is already working on this.
Since Aug 25, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Bump the pinned runtime from bun@1.3.14 to bun@1.4.1 (released 2026-09-04; 1.4 shipped 2026-08-20 with the Zig→Rust rewrite). The only pin is packageManager in the root package.json — CI (.github/actions/setup-bun) reads it and bun build --compile embeds the running version into release binaries.
Benefit, measured on v1 (macOS arm64, peak RSS, isolated data dirs):
| 1.18.22 (Bun 1.3.14 embedded) | rebuilt with Bun 1.4.0 | |
|---|---|---|
| --version startup | ~173 MB | ~149 MB (-14 %) |
| serve cold+idle | 624–782 MB, unstable between runs | ~567–576 MB, stable |
| TUI boot over a 6.2 GB / 6527-file repo | 3.7 s | 3.1 s |
| test suite (3339 tests) | 276 s | 232 s |
1.4.1 is a small follow-up to the Rust rewrite; locally verified that the 1.4.0 measurement holds and the suite stays green.
Prerequisite: #44943 — without those changes the suite is red under 1.4 (unhandled rejection from the SSE chunk-timeout path; plus one load-sensitive PTY poll deadline).
A PR implementing the bump (now targeting 1.4.1) is up as #44946.
Before flipping stable, Windows needs a smoke test: the fix referenced from #44513 is not visible in the 1.4.0 release notes and related unwind issues (oven-sh/bun#38789, #39101) are still open.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.