[Bug] Auto-compact fails mid-session during refactor operations

Resolved 💬 4 comments Opened Mar 27, 2026 by prodepollo Closed Apr 26, 2026

Bug Description
Unuable to automatic compact context. This happened in the middle of a refactor and testing session, making it difficult to roll back

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.84
  • Feedback ID: ee38caa9-1949-4a42-b5a8-874130c06b8b

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/andrea/.local/share/claude/versions/2.1.84 (expected in multi-process scenarios)\n    at Jm_ (/$bunfs/root/src/entrypoints/cli.js:2740:2168)\n    at tlT (/$bunfs/root/src/entrypoints/cli.js:2740:1326)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T20:53:31.586Z"},{"error":"MaxFileReadTokenExceededError: File content (10781 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at R$A (/$bunfs/root/src/entrypoints/cli.js:4484:23589)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:31:05.105Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1363567 tokens > 1000000 maximum\"},\"request_id\":\"req_011CZSQbW9Tp1E2BHjscbzK3\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:57383)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:32:56.419Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at HGH (/$bunfs/root/src/entrypoints/cli.js:2103:1301)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:32:56.422Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1366959 tokens > 1000000 maximum\"},\"request_id\":\"req_011CZSQbg9UciMe1vZL4Dr1F\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:57383)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:32:58.748Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at HGH (/$bunfs/root/src/entrypoints/cli.js:2103:1301)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:32:58.749Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1366959 tokens > 1000000 maximum\"},\"request_id\":\"req_011CZSQvGd9uNmTYNBWPDpJY\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:57383)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:37:11.025Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at HGH (/$bunfs/root/src/entrypoints/cli.js:2103:1301)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:37:11.027Z"},{"error":"Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:4861:1188)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:37:11.027Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1366738 tokens > 1000000 maximum\"},\"request_id\":\"req_011CZSR1U3snWevAihseX9ha\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:57383)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:38:21.572Z"},{"error":"Error: Conversation too long. Press esc twice to go up a few messages and try again.\n    at mW6 (/$bunfs/root/src/entrypoints/cli.js:2106:791)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:7830:13512)\n    at async B (/$bunfs/root/src/entrypoints/cli.js:7632:509)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T21:38:21.573Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 1060179 tokens > 1000000 maximum\"},\"request_id\":\"req_011CZT9Nc6Hzmdopzgw9TR53\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:57383)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-27T06:53:54.929Z"}]

View original on GitHub ↗

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