Bug Report: Unexpected Crash During Execution
Bug Description
Crashed with error (will paste later, too long)
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 1.0.72
- Feedback ID: c41d8df3-c88f-4046-9609-d07fce4f2788
Errors
file:///Users/brooksc/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1353);if(Z!==-1){if(D=A.substring(0,Z),D.length+1>B)return${D.substring(0,B-1)}…;return${D}…}}if(D.length<=B)return D;return${D.substring(0,B-1)}…}function Pm(A){if(A<60000){let Z=(A/1000).toFixed(1);return${Z.endsWith(".0")?Z.slice(0,-2):Z}s}let B=Math.floor(A/3600000),Q=Math.floor(A%3600000/60000),D=(A%60000/1000).toFixed(1);if(B>0)return${B}h ${Q}m ${D}s;if(Q>0)return${Q}m ${D}s;return${D}s}function PI(A){let B=A>=1000;return new Intl.NumberFormat("en",{notation:"compact",minimumFractionDigits:B?1:0,maximumFractionDigits:1}).format(A).toLowerCase()}function lx1(A,B={}){let{style:Q="narrow",numeric:D="always",now:Z=new Date}=B,G=A.getTime()-Z.getTime(),F=Math.trunc(G/1000),I=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:W,seconds:J,shortUnit:X}of I)if(Math.abs(F)>=J){let V=Math.trunc(F/J);if(Q==="narrow"&&J<86400)return F<0?${Math.abs(V)}${X} ago:in ${V}${X};return new Intl.RelativeTimeFormat("en",{style:"long",numeric:D}).format(V,W)}if(Q==="narrow")return F<=0?"0s ago":"in 0s";return new Intl.RelativeTimeFormat("en",{style:Q,numeric:D}).format(0,"second")}function ix1(A,B={}){let{now:Q=new Date,...D}=B;if(A>Q)return lx1(A,{...D,now:Q});return lx1(A,{...D,numeric:"always",now:Q})}function V11(A,B=!1){if(!A)return;let Q=new Date(A*1000),D=Q.getMinutes(),Z=Q.toLocaleTimeString("en-US",{hour:"numeric",minute:D===0?void 0:"2-digit",hour12:!0}),G=Intl.DateTimeFormat().resolvedOptions().timeZone;return Z.replace(/ ([AP]M)/i,(F,I)=>I.toLowerCase())+(B? (${G}):"")}var GLB=F1(BLB(),1);class J$0{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,D=Math.min(A,this.size);for(let Z=0;Z<D;Z++){let G=(Q+this.size-D+Z)%this.capacity;B.push(this.buffer[G])}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 D=(B+Q)%this.capacity;A.push(this.buffer[D])}return A}clear(){this.head=0,this.size=0}length(){return this.size}}var QLB=137,DLB=143;function ZLB(A){let B=null,Q="";A.on("data",(Z)=>{if(B)B.write(Z);else Q+=Z});let D=()=>Q;return{get:D,asStream(){return B=new SQ8({highWaterMark:10485760}),B.write(D()),Q="",B}}}function FLB(A,B,Q,D){let Z="running",G,F=ZLB(A.stdout),I=ZLB(A.stderr);if(D){let V=new J$0(10),C=0,K=(H)=>{let $=H.toString().split(
RangeError: Invalid string length
at Socket.<anonymous> (file:///Users/brooksc/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1353:2528)
at Socket.emit (node:events:519:35)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗