Bun

Bun issue (Dec 1): Bun Test Expect Rejects Resolves Stalls MessagePort onmacOS

medium

Is it fixed? Not yet.

Ongoing since Dec 1, 07:05 UTC. First reported Dec 1, 07:05 UTC.

What happened

Using expect().rejects or .resolves inside a MessagePort onmessage continuation in Bun permanently stalls the port. The bug is reproducible on versions 1.4.4 and 1.4.5 on macOS arm64.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Official fix

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    bun:test: `expect().rejects` / `.resolves` inside a MessagePort `onmessage` continuation permanently stalls the port

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    bun:test: `expect().rejects` / `.resolves` inside a MessagePort `onmessage` continuation permanently stalls the port(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.4+38afee6c8 (also reproduces on 1.4.5) What platform is your computer? Darwin 27.2.0 arm64 What steps can reproduce the bug? A MessageChannel used as a "next task" scheduler (the pattern @agentclientprotocol/sdk >= 2.9.0 uses to dispatch every inbound message). From code running in the port's onmessage continuation, await expect(p).rejects on a promise that needs the port to deliver one more message: // nested.test.ts import { expect, test } from "bun:test";…

    by mgoldsborough 0upvotes 0comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Dec 1, 07:05 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun issue?

Bun (versions: 1.4.4, 1.4.5).

When did the Bun issue start and end?

It started Dec 1, 07:05 UTC and is still ongoing (3 h 42 min so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.