[Bug] Premature message compaction at low token usage threshold

Resolved 💬 11 comments Opened Nov 18, 2025 by kirso Closed Mar 5, 2026

Bug Description
Compaction happens on 1m sonnet 4.5 and 4% of the session token usage as well as 24% of the context still left.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.0.43
  • Feedback ID: b64565be-9007-4c99-9c84-24d00e7fa2d3

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.42 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async ZtR (/$bunfs/root/claude:2254:3329)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:32:51.780Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:33:05.676Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:35:30.461Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:35:33.888Z"},{"error":"Error: Request was aborted.\n    at _createMessage (/$bunfs/root/claude:393:4515)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:36:25.725Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:44:19.443Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:45:27.122Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:50:41.812Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T02:53:59.567Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kirso/.local/share/claude/versions/2.0.43 (expected in multi-process scenarios)\n    at epB (/$bunfs/root/claude:2254:1514)\n    at JtR (/$bunfs/root/claude:2252:12596)\n    at async B5_ (/$bunfs/root/claude:2252:13802)\n    at async iS (/$bunfs/root/claude:2254:235)\n    at async <anonymous> (/$bunfs/root/claude:2254:12373)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-18T03:03:00.457Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:669:3861)\n    at processTicksAndRejections (native:7:39)","timestamp

Note: Error logs were truncated.

<img width="1186" height="800" alt="Image" src="https://github.com/user-attachments/assets/29c67269-6efa-4525-ad66-2afcf3c892d3" />

<img width="1930" height="1052" alt="Image" src="https://github.com/user-attachments/assets/418eb7d6-46c0-471c-968e-e9f712d23685" />

View original on GitHub ↗

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