[BUG] Claude code crashes
Resolved 💬 13 comments Opened Oct 18, 2025 by udai-kiran Closed Jan 12, 2026
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?
every time I use refer to a directory Claude code crashes.
❯ claude --version
2.0.22 (Claude Code)
❯ claude
▐▛███▜▌ Claude Code v2.0.22
▝▜█████▛▘ us.anthropic.claude-sonnet-4-5-20250929-v1:0 · API Usage Billing
▘▘ ▝▝ /work/<redacted path>/demonstrate-full-workflow
> there is a uv environment @<redacted path> i want to create section for test-and-eval for the packages that are only installed in a test environment.
⎿ Listed directory <redacted path>
✻ Inferring… (esc to interrupt)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
? for shortcuts Thinking off (tab to toggle)
3320 | ${Object.entries(G).map(([Y,W])=>`# ${Y}
3321 | ${W}`).join(`
3322 | `)}
3323 |
3324 | IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.
3325 | `,isMeta:!0}),...Z]}async function iUY(Z,G){if(tS())return;let[{tools:Y},W,X,J]=await Promise.all([Ok0(Z),sw(G),f7(),x7()]),B=J.gitStatus?.length??0,Q=X.claudeMd?.length??0,V=B+Q,K=I9(),H=K9();setTimeout(()=>H.abort(),1000);let z=await Hq0(o1(),H.signal,K.ignorePatterns??[]),I=0,$=0,F=0,w=0,U=0,N=W.filter((E)=>!E.isMcp);I=Y.length,w=N.length;let O=new Set;for(let E of Y){let T=E.name.split("__");if(T.length>=3&&T[1])O.add(T[1])}$=O.size;try{if(Y.length>0){let{mcpToolTokens:E}=await TQ0(Y,async()=>G,null);F=E}if(N.length>0)U=await pUY(W,async()=>G,null)}catch{}G0("tengu_context_size",{git_status_size:B,claude_md_size:Q,total_context_size:V,project_file_count_rounded:z,mcp_tools_count:I,mcp_servers_count:$,mcp_tools_tokens:F,non_mcp_tools_count:w,non_mcp_tools_tokens:U})}function nUY(Z,G){switch(Z.name){case pY.name:{let Y=pY.inputSchema.parse(G),{command:W,timeout:X,description:J,run_in_background:B}=Y,Q=W.replace(`cd ${o1()} && `,"");if(Q=Q.replace(/\\\\;/g,"\\;"),/^echo\s+["']?[^|&;><]*["']?$/i.test(Q.trim() | ... truncated
error: No assistant message found
at gb (/$bunfs/root/claude:3325:12889)
at async <anonymous> (/$bunfs/root/claude:3325:21638)
at async Om1 (/$bunfs/root/claude:3325:2017)
at async SV (/$bunfs/root/claude:3325:21495)
at async _tG (/$bunfs/root/claude:3332:208)
at processTicksAndRejections (7:39)
Bun v1.2.23 (Linux x64 baseline)
What Should Happen?
it should not crash.
Error Messages/Logs
Steps to Reproduce
every time I use refer to a directory Claude code crashes.
❯ claude --version
2.0.22 (Claude Code)
❯ claude
▐▛███▜▌ Claude Code v2.0.22
▝▜█████▛▘ us.anthropic.claude-sonnet-4-5-20250929-v1:0 · API Usage Billing
▘▘ ▝▝ /work/<redacted path>/demonstrate-full-workflow
> there is a uv environment @<redacted path> i want to create section for test-and-eval for the packages that are only installed in a test environment.
⎿ Listed directory <redacted path>
✻ Inferring… (esc to interrupt)
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
? for shortcuts Thinking off (tab to toggle)
3320 | ${Object.entries(G).map(([Y,W])=>`# ${Y}
3321 | ${W}`).join(`
3322 | `)}
3323 |
3324 | IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.
3325 | `,isMeta:!0}),...Z]}async function iUY(Z,G){if(tS())return;let[{tools:Y},W,X,J]=await Promise.all([Ok0(Z),sw(G),f7(),x7()]),B=J.gitStatus?.length??0,Q=X.claudeMd?.length??0,V=B+Q,K=I9(),H=K9();setTimeout(()=>H.abort(),1000);let z=await Hq0(o1(),H.signal,K.ignorePatterns??[]),I=0,$=0,F=0,w=0,U=0,N=W.filter((E)=>!E.isMcp);I=Y.length,w=N.length;let O=new Set;for(let E of Y){let T=E.name.split("__");if(T.length>=3&&T[1])O.add(T[1])}$=O.size;try{if(Y.length>0){let{mcpToolTokens:E}=await TQ0(Y,async()=>G,null);F=E}if(N.length>0)U=await pUY(W,async()=>G,null)}catch{}G0("tengu_context_size",{git_status_size:B,claude_md_size:Q,total_context_size:V,project_file_count_rounded:z,mcp_tools_count:I,mcp_servers_count:$,mcp_tools_tokens:F,non_mcp_tools_count:w,non_mcp_tools_tokens:U})}function nUY(Z,G){switch(Z.name){case pY.name:{let Y=pY.inputSchema.parse(G),{command:W,timeout:X,description:J,run_in_background:B}=Y,Q=W.replace(`cd ${o1()} && `,"");if(Q=Q.replace(/\\\\;/g,"\\;"),/^echo\s+["']?[^|&;><]*["']?$/i.test(Q.trim() | ... truncated
error: No assistant message found
at gb (/$bunfs/root/claude:3325:12889)
at async <anonymous> (/$bunfs/root/claude:3325:21638)
at async Om1 (/$bunfs/root/claude:3325:2017)
at async SV (/$bunfs/root/claude:3325:21495)
at async _tG (/$bunfs/root/claude:3332:208)
at processTicksAndRejections (7:39)
Bun v1.2.23 (Linux x64 baseline)
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.22
Platform
AWS Bedrock
Operating System
Other Linux
Terminal/Shell
Xterm
Additional Information
_No response_
This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗