[Bug] Context limit exceeded with multiple subagents causes unrecoverable session state
Resolved 💬 3 comments Opened Feb 13, 2026 by tdimino Closed Feb 17, 2026
Bug Description
Whenever more than 4-5 subagents are launched at once, their combined outputs force a "context limit reached" error that breaks the session and makes it impossible to compact.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.1.41
- Feedback ID: 8afb8a8a-d9c6-4e24-b6ec-98d13a498c55
Errors
[{"error":"Error: 1P event logging: 9 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (/$bunfs/root/claude:2105:2350)\n at async doExport (/$bunfs/root/claude:2105:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:05:57.966Z"},{"error":"Error: {\"message\":\"Failed to export 9 events (code=ECONNREFUSED, ECONNREFUSED)\",\"originalLine\":\"2105\",\"originalColumn\":\"1409\",\"line\":\"2105\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 9 events (code=ECONNREFUSED, ECONNREFUSED)\\n at doExport (/$bunfs/root/claude:2105:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:2148:25028)\n at <anonymous> (/$bunfs/root/claude:2100:20181)\n at pm7 (/$bunfs/root/claude:2100:20725)\n at <anonymous> (/$bunfs/root/claude:2101:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:05:57.966Z"},{"error":"Error: Connection error.\n at makeRequest (/$bunfs/root/claude:366:4548)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:05:59.619Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:62:1142)\n at A (/$bunfs/root/claude:11:7851)\n at pU_ (/$bunfs/root/claude:1283:6773)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:05:59.620Z"},{"error":"Error: 1P event logging: 2 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n at queueFailedEvents (/$bunfs/root/claude:2105:2350)\n at async doExport (/$bunfs/root/claude:2105:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:06:04.624Z"},{"error":"Error: {\"message\":\"Failed to export 2 events (code=FailedToOpenSocket, Was there a typo in the url or port?)\",\"originalLine\":\"2105\",\"originalColumn\":\"1409\",\"line\":\"2105\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 2 events (code=FailedToOpenSocket, Was there a typo in the url or port?)\\n at doExport (/$bunfs/root/claude:2105:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:2148:25028)\n at <anonymous> (/$bunfs/root/claude:2100:20181)\n at pm7 (/$bunfs/root/claude:2100:20725)\n at <anonymous> (/$bunfs/root/claude:2101:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:06:04.624Z"},{"error":"Error\n at <anonymous> (/$bunfs/root/claude:29:11081)\n at <anonymous> (/$bunfs/root/claude:43:10259)\n at emitError (node:events:43:23)\n at <anonymous> (/$bunfs/root/claude:42:3470)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:45:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:06:07.969Z"},{"error":"Error: 1P event logging: 1 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n at queueFailedEvents (/$bunfs/root/claude:2105:2350)\n at async doExport (/$bunfs/root/claude:2105:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:07:01.709Z"},{"error":"Error: {\"message\":\"Failed to export 1 events (code=FailedToOpenSocket, Was there a typo in the url or port?)\",\"originalLine\":\"2105\",\"originalColumn\":\"1409\",\"line\":\"2105\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 1 events (code=FailedToOpenSocket, Was there a typo in the url or port?)\\n at doExport (/$bunfs/root/claude:2105:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:2148:25028)\n at <anonymous> (/$bunfs/root/claude:2100:20181)\n at pm7 (/$bunfs/root/claude:2100:20725)\n at <anonymous> (/$bunfs/root/claude:2101:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-13T05:07:01…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗