[BUG] RangeError: String.prototype.repeat on Linux

Resolved 💬 4 comments Opened Sep 9, 2025 by fc-mobi Closed Nov 6, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I try to provide commands via InputStream / Pipe claude crashes.
On a MacOS machine the same prompt works fine.

What Should Happen?

Claude should execute the prompt.

Error Messages/Logs

RangeError: String.prototype.repeat argument must be greater than or equal to 0 and not be Infinity
      at repeat (1:11)
      at pM5 (/$bunfs/root/claude:651:11795)
      at l5Z (/$bunfs/root/claude:654:548)
      at l5Z (/$bunfs/root/claude:654:1005)
      at l5Z (/$bunfs/root/claude:654:1005)
      at l5Z (/$bunfs/root/claude:654:1005)
      at JE5 (/$bunfs/root/claude:656:329)
      at onRender (/$bunfs/root/claude:665:5025)
      at <anonymous> (/$bunfs/root/claude:633:1012)
      at V (/$bunfs/root/claude:633:434)

Bun v1.2.19 (Linux x64 baseline)

Steps to Reproduce

Just execute:

echo "How Old are you?" | claude

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.109 native

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗