[BUG]

Resolved 💬 5 comments Opened Aug 30, 2025 by wrharthur Closed Jan 8, 2026

Environment

  • Platform:
  • Anthropic API
  • Claude CLI version: 1.0.98
  • Operating System: Windows 11
  • Terminal: PowerShell

Bug Description

printed the following:

  • View comments on a Github PR: gh api repos/foo/bar/pulls/123/comments}var rr2=Q1(TK(),1);import{constants as XN6,readFileSync as FN6,existsSync as VN6}from"node:fs";var dK0=Q1(TK(),1);function cK0(A){if(/\d\s*<<\s*\d/.test(A)||/\[\[\s*\d+\s*<<\s*\d+\s*\]\]/.test(A)||/\$\(\(.*<<.*\)\)/.test(A))return!1;return/<<-?\s*(?:(['"]?)(\w+)\1|\\(\w+))/.test(A)}function mq6(A){let B=/'(?:[^'\\]|\\.)*\n(?:[^'\\]|\\.)*'/,Q=/"(?:[^"\\]|\\.)*\n(?:[^"\\]|\\.)*"/;return B.test(A)||Q.test(A)}function bj1(A,B=!0){if(cK0(A)||mq6(A)){let Z='${A.replace(/'/g,'"'"')}';if(cK0(A))return Z;return B?${Z} < /dev/null:Z}if(B)return dK0.default.quote([A,"<","/dev/null"]);return dK0.default.quote([A])}function lK0(A){if(cK0(A))return!1;return!0}import{execSync as or2,spawn as KN6}from"node:child_process";import{isAbsolute as HN6,resolve as zN6}from"node:path";import*as tr2 from"node:os";import{PassThrough as cq6}from"stream";var yr2=Q1(Tr2(),1);class c31{capacity;buffer;head=0;size=0;constructor(A){this.capacity=A;this.buffer=new Array(A)}add(A){if(this.buffer[this.head]=A,this.head=(this.head+1)%this.capacity,this.size<this.capacity)this.size++}addAll(A){for(let B of A)this.add(B)}getRecent(A){let B=[],Q=this.size<this.capacity?0:this.head,Z=Math.min(A,this.size);for(let G=0;G<Z;G++){let Y=(Q+this.size-Z+G)%this.capacity;B.push(this.buffer[Y])}return B}toArray(){if(this.size===0)return[];let A=[],B=this.size<this.capacity?0:this.head;for(let Q=0;Q<this.size;Q++){let Z=(B+Q)%this.capacity;A.push(this.buffer[Z])}return A}clear(){this.head=0,this.size=0}length(){return this.size}}var Pr2=137,Sr2=143;function jr2(A){let B=null,Q="";A.on("data",(G)=>{if(B)B.write(G);else Q+=G});let Z=()=>Q;return{get:Z,asStream(){return B=new cq6({highWaterMark:10485760}),B.write(Z()),Q="",B}}}function kr2(A,B,Q,Z){let G="running",Y,I=jr2(A.stdout),W=jr2(A.stderr);if(Z){let K=new c31(10),H=0,z=(D)=>{let w=D.toString().split(

RangeError: Invalid string length
at Socket.<anonymous> (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1452:1678)
at Socket.emit (node:events:530:35)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)

Node.js v22.17.1

Steps to Reproduce

  1. choose auto-accpet in the plan-mode

Expected Behavior

claude code stopped working and not responding to any input.

Actual Behavior

claude code stopped working and not responding to any input.

Additional Context

model: Default
codebase: python and R mix

View original on GitHub ↗

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