[Bug] Context window exhaustion causes multi-agent freeze
Bug Description ran in context low issues while working with multiple agents, effectively froze everything
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.76
- Feedback ID: cbcfe8f3-f17a-4036-95cd-a1412b7889ea
Errors
[{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:03.947Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:04.030Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:04.307Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:04.307Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:04.548Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:05.170Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth token has expired. Please obtain a new token or refresh your existing token.\"},\"request_id\":\"req_011CWeSzS9cjBbRA4MJkBEFv\"}\n at generate (/$bunfs/root/claude:454:11133)\n at makeRequest (/$bunfs/root/claude:801:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:05.324Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:05.569Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:05.973Z"},{"error":"Error\n at ak (/$bunfs/root/claude:59:1144)\n at <anonymous> (/$bunfs/root/claude:60:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:62:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-31T08:28:06.197Z"},{"error":"Error: Tool mcp__playwright__browser_navigate not found\n at WwB (/$bunfs/root/claude:2541:6724)\n at L4 (/$bunfs/root/claude:202:20697)\n at wq (/$bunfs/root/claude:202:39069)\n at DTT (/$bunfs/root/claude:202:49684)\n at J6 (/$bunfs/root/claude:202:85872)\n at Vv (/$bunfs/root/claude:202:84850)\n at mf (/$bunfs/root/claude:202:84675)\n at Hk (/$bunfs/root/claude:202:81115)\n at wA (/$bunfs/root/claude:202:6362)\n at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-31T08:28:06.348Z"},{"error":"E
Note: Error logs were truncated.
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/15299
- https://github.com/anthropics/claude-code/issues/4580
- https://github.com/anthropics/claude-code/issues/14124
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Please ignore: I'm testing a discussion backlink https://github.com/orgs/community/discussions/2971#discussioncomment-15382095
I'm not sure if's the same issue but when I run (sub) agents they run out of context and when they return to the main agent the main agent is also out of context and /compact no longer works
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.