[PR #5396] fix: Writing to Bun.stderr causes CPU pinning to 100%. #11380

Closed
opened 2026-02-16 18:16:12 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5396

State: closed
Merged: Yes


Seen on macOS Sequoia 15.7.2 . Probably bug in Bun. writing directly to process.stderr works around it. Tested with Bun 1.3.4.

The bug is only seen when process stderr is piped to another process such as tee like

bun run dev -- serve --port 0 --print-logs --log-level INFO 2>&1 | tee -a test.log

And then sending api request to trigger error logs

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5396 **State:** closed **Merged:** Yes --- Seen on macOS Sequoia 15.7.2 . Probably bug in Bun. writing directly to process.stderr works around it. Tested with Bun 1.3.4. The bug is only seen when process stderr is piped to another process such as tee like bun run dev -- serve --port 0 --print-logs --log-level INFO 2>&1 | tee -a test.log And then sending api request to trigger error logs
yindo added the pull-request label 2026-02-16 18:16:12 -05:00
yindo closed this issue 2026-02-16 18:16:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11380