[Bug] Auto-Compact fails when context shared with sub-agents reaches 0%

Resolved 💬 3 comments Opened Nov 27, 2025 by acilmedes Closed Dec 1, 2025

Bug Description
terdapat bugs auto compact tidak berjalan karena context yang digunakan bersama sub-agent, sehingga context sudah 0% saat auto compact ke trigger muncul error auto compact failed atau sejenisnya

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.55
  • Feedback ID: bf785e50-19a1-4b69-ad26-95317e685475

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T13:54:04.495Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T14:09:56.650Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T14:39:56.665Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T15:01:36.994Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T15:02:32.728Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T15:09:36.438Z"},{"error":"MaxFileReadTokenExceededError: File content (25181 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 psB (/$bunfs/root/claude:1450:41002)\n    at async call (/$bunfs/root/claude:1459:972)\n    at async <anonymous> (/$bunfs/root/claude:1651:1512)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T15:10:33.644Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T15:23:05.339Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2.0.55 (expected in multi-process scenarios)\n    at HN0 (/$bunfs/root/claude:2667:1622)\n    at o2A (/$bunfs/root/claude:2665:34072)\n    at async m17 (/$bunfs/root/claude:2665:35274)\n    at async vx (/$bunfs/root/claude:2667:236)\n    at async <anonymous> (/$bunfs/root/claude:2667:12465)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-27T15:28:22.259Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/macbook/.local/share/claude/versions/2

Note: Error logs were truncated.

View original on GitHub ↗

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