Skip to content

Freeze on stdin paste from clipboard with input larger than 1023 bytes #26458

@i-love-neko-girls

Description

@i-love-neko-girls

What version of Bun is running?

1.3.7-canary.121+6130aa816

What platform is your computer?

Darwin 25.1.0 arm64 arm

What steps can reproduce the bug?

console.log('\n' + prompt())

or

for await (const line of console) {
  console.log('\n' + line)
}
  1. run bun stdin.ts in your terminal
  2. paste 1024 bytes of some text from clipboard

What is the expected behavior?

continues script execution

What do you see instead?

freezes

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions