[Bug] Context limit exhaustion within ~10 minutes on Opus 4.6, /compact fails when triggered
Bug Description
Context limit exhaustion within ~10 minutes on Opus 4.6
Running Claude Code with --dangerously-skip-permissions on an Angular project (NGX Ramblers). After starting a fresh session with a recently slimmed-down CLAUDE.md, context limit is reached within approximately 10 minutes of work. When the "context limit reached" message appears, /compact fails with "Error: Conversation too long. Press esc twice to go up a few messages and try again" — creating an unrecoverable loop where neither /compact nor continuing is possible, forcing a /clear or full session restart.
This feels like a regression since Opus 4.6 — sessions are becoming unusable very quickly, and the fallback (/compact) fails precisely when it's most needed.
## Environment
- Device: MacBook Pro 16-inch (Nov 2023)
- Chip: Apple M3 Max
- Memory: 64 GB
- macOS: Tahoe 26.2
- Claude Code CLI launched from iTerm with --dangerously-skip-permissions flag.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.34
- Feedback ID: 29f2da63-7e50-437e-ac75-3653fb81a626
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/nick/.local/share/claude/versions/2.1.34 (expected in multi-process scenarios)\n at nYR (/$bunfs/root/claude:3584:2098)\n at PbA (/$bunfs/root/claude:3584:1209)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-07T11:47:38.594Z"}]This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗