Bun Windows process.stdin TTY Slow Read Performance and Event Loop Block
Is it fixed? Not yet.
Ongoing since Nov 19, 12:51 UTC. First reported Nov 19, 12:51 UTC.
What happened
Bun on Windows experiences slow read performance (~60 KB/s) on process.stdin in raw mode on a console TTY, blocking the event loop and freezing TUIs when pasting large data. The issue stems from libuv calling ReadConsoleInputW once per byte in Bun's fork.
What caused it?
libuv calls ReadConsoleInputW once per byte and blocks the event loop on Windows consoles.
Source: github.com
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
Windows: `process.stdin` on a console TTY reads ~60 KB/s — libuv calls `ReadConsoleInputW` once per byte and blocks the event loop
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportWindows: `process.stdin` on a console TTY reads ~60 KB/s — libuv calls `ReadConsoleInputW` once per byte and blocks the event loop(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? On Windows, process.stdin in raw mode on a console (ConPTY) reads at ~60 KB/s. Pasting 1 MB into a TUI built on Bun takes ~20 s, and the event loop is blocked for most of that time. I hit this with a coding-agent TUI (oh-my-pi): pasting a ~1 MB screenshot (OSC 5522, 1.3 MB of base64) freezes it for ~20 s. The cause is in the libuv fork Bun…
by Misnik1337 0upvotes 0comments
FAQ
What happened in the Bun issue?
Bun on Windows experiences slow read performance (~60 KB/s) on process.stdin in raw mode on a console TTY, blocking the event loop and freezing TUIs when pasting large data. The issue stems from libuv calling ReadConsoleInputW once per byte in Bun's fork.
What is affected by the Bun issue?
Bun (versions: 1.4.5+a7733435c).
When did the Bun issue start and end?
It started Nov 19, 12:51 UTC and is still ongoing (1 h 56 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.