[Bug] Context Compaction fails when agent reaches context limit
Resolved 💬 4 comments Opened Feb 16, 2026 by naveensoman Closed Mar 20, 2026
Bug Description
If an agent runs out of context, the Compaction process fails. Its a major workflow problem.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.42
- Feedback ID: 46ef8a79-b97b-4c10-b8fc-e64e084b6332
Errors
[{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:37:50.303Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:37:50.304Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:37:50.305Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:37:50.306Z"},{"error":"MaxFileReadTokenExceededError: File content (28604 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at Gz_ (/$bunfs/root/claude:1300:7592)\n at async Jz_ (/$bunfs/root/claude:1304:2464)\n at async call (/$bunfs/root/claude:1309:5930)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:38:08.251Z"},{"error":"Error: File does not exist.\n at call (/$bunfs/root/claude:1309:6225)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:45:03.342Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 205842 tokens > 200000 maximum\"},\"request_id\":\"req_011CYAuMHCJZ5ukebuSAaPaS\"}\n at generate (/$bunfs/root/claude:327:8796)\n at makeRequest (/$bunfs/root/claude:366:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:46:02.933Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n at bET (/$bunfs/root/claude:3159:939)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:46:02.934Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 205842 tokens > 200000 maximum\"},\"request_id\":\"req_011CYAuML1UFbbBWaRMNzx6q\"}\n at generate (/$bunfs/root/claude:327:8796)\n at makeRequest (/$bunfs/root/claude:366:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:46:03.571Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:46:18.487Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:47:33.403Z"},{"error":"MaxFileReadTokenExceededError: File content (28604 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at Gz_ (/$bunfs/root/claude:1300:7592)\n at async Jz_ (/$bunfs/root/claude:1304:2464)\n at async call (/$bunfs/root/claude:1309:5930)\n at async <anonymous> (/$bunfs/root/claude:5821:1670)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T01:57:56.982Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T02:00:02.284Z"},{"error":"Error: File does not exist. Current working directory: /Users/naveen/NEXUS/anchor\n at call (/$bunfs/root/claude:1309:6225)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-16T02:14:09.097Z"},{"error":"MaxFileReadTokenExceededError: File content (57983 tokens) exceeds maximum allowed tokens (25000). Please use …
Note: Content was truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗