Skip to content

chore: bump embedded Bun to 1.4.0 - #44946

Open
AlexanderWillner wants to merge 3 commits into
anomalyco:devfrom
AlexanderWillner:bun14-rt-bump
Open

chore: bump embedded Bun to 1.4.0#44946
AlexanderWillner wants to merge 3 commits into
anomalyco:devfrom
AlexanderWillner:bun14-rt-bump

Conversation

@AlexanderWillner

Copy link
Copy Markdown

Issue for this PR

Closes#44945

Type of change

  • Refactor / code improvement

What does this PR do?

Bumps the pinned packageManager from bun@1.3.14 to bun@1.4.0. That field drives CI via .github/actions/setup-bun, and bun build --compile embeds the running runtime into release binaries — so this one line is the whole runtime upgrade.

The first two commits are the prerequisite fixes from #44944 (this branch builds on it); under Bun 1.4 the suite fails without them.

How did you verify your code works?

Built darwin-arm64 with Bun 1.4.0 (binary contains bun-v1.4.0, smoke test green) and ran the full packages/opencode suite: 3339 tests, 0 fail. Same suite green under 1.3.14 with these commits.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

When the chunk-timeout fires, the fetch-body reader is cancelled after
the request signal is aborted. Under Bun 1.4 reader.cancel() then
rejects, and the voided promise surfaces as an unhandled rejection
that fails tests (and can crash strict runtimes). Handle the
rejection explicitly.
The 5s deadline is load-sensitive: under a fully parallel test run
the PTY exit event was observed too late and the test failed even
though the behaviour under test is correct.
Runtime bump only. Depends on the SSE cancel-rejection and PTY poll
deadline fixes on this branch so the suite stays green under 1.4.
CI (.github/actions/setup-bun) reads packageManager, so release
binaries embed Bun 1.4.0 automatically.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Upgrade bundled Bun from 1.3.14 to 1.4.0

1 participant

@AlexanderWillner