[Bug] Agent execution crashes without sandbox mode enabled

Resolved 💬 3 comments Opened Oct 22, 2025 by dmitrymomot Closed Oct 25, 2025

<img width="1509" height="554" alt="Image" src="https://github.com/user-attachments/assets/f4aabc31-1caa-4494-8b31-cd70485083a5" />

Bug Description
if CC works without sandbox, it always fail using agents and quit from app at all:

3353 | ${Object.entries(G).map(([Y,W])=># ${Y}
3354 | ${W}
).join(
3355 |
)}
3356 |
3357 | 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.
3358 | ,isMeta:!0}),...Z]}async function JCY(Z,G){if(kj())return;let[{tools:Y},W,X,J]=await Promise.all([pk0(Z),wU(G),m7(),g7()]),B=J.gitStatus?.length??0,Q=X.claudeMd?.length??0,V=B+Q,K=wW(),H=qW();setTimeout(()=>H.abort(),1000);let z=await Sw0(t1(),H.signal,K.ignorePatterns??[]),$=0,I=0,q=0,w=0,U=0,N=W.filter((M)=>!M.isMcp);$=Y.length,w=N.length;let E=new Set;for(let M of Y){let T=M.name.split("__");if(T.length>=3&&T[1])E.add(T[1])}I=E.size;try{if(Y.length>0){let{mcpToolTokens:M}=await xV0(Y,async()=>G,null);q=M}if(N.length>0)U=await WCY(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:$,mcp_servers_count:I,mcp_tools_tokens:q,non_mcp_tools_count:w,non_mcp_tools_tokens:U})}function BCY(Z,G){switch(Z.name){case hY.name:{let Y=hY.inputSchema.parse(G),{command:W,timeout:X,description:J,run_in_background:B}=Y,Q=W.replace(cd ${t1()} && `,"");if(Q=Q.replace(/\\\\;/g,"\\;"),/^echo\s+["']?[^|&;><]*["']?$/i.test(Q.trim() | ... truncated

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.25
  • Feedback ID: d1db59ba-ee8f-4148-9b59-185dc44cf663

Errors

[]

View original on GitHub ↗

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