[Bug] Compact Command Fails with "Conversation Too Long" Error
Resolved 💬 3 comments Opened Oct 13, 2025 by iceroadlogic Closed Oct 14, 2025
Bug Description
When I have compact in ##% message it never works for me. When I do /compact I always get the message Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and
try again. I have to go up very very far to get it to work if at all. Forces me to waste the remaining % left to force a forced compact because I don't like starting Claude on a task and get force compact in the middle of it. In my experiences it doesn't go as well as when Claude doesn't get interupted by compacting.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.8
- Feedback ID:
Errors
[{"error":"j_1: Failed to install new version of claude: npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\sharp-win32-x64.node\nnpm error dest C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-TpuywsRB\\node_modules\\@img\\sharp-win32-x64\\lib\\sharp-win32-x64.node\nnpm error errno -4082\nnpm error EBUSY: resource busy or locked, copyfile 'C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\sharp-win32-x64.node' -> 'C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-TpuywsRB\\node_modules\\@img\\sharp-win32-x64\\lib\\sharp-win32-x64.node'\nnpm error A complete log of this run can be found in: C:\\Users\\Tom\\AppData\\Local\\npm-cache\\_logs\\2025-10-10T05_15_00_988Z-debug-0.log\n at xG1 (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1893:388)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.current (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2638:8320)","timestamp":"2025-10-10T05:15:02.140Z"},{"error":"j_1: Failed to install new version of claude: npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll\nnpm error dest C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-TpuywsRB\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll\nnpm error errno -4082\nnpm error EBUSY: resource busy or locked, copyfile 'C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll' -> 'C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-TpuywsRB\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll'\nnpm error A complete log of this run can be found in: C:\\Users\\Tom\\AppData\\Local\\npm-cache\\_logs\\2025-10-10T05_45_00_880Z-debug-0.log\n at xG1 (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1893:388)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.current (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2638:8320)","timestamp":"2025-10-10T05:45:01.980Z"},{"error":"j_1: Failed to install new version of claude: npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-cpp.dll\nnpm error dest C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-TpuywsRB\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-cpp.dll\nnpm error errno -4082\nnpm error EBUSY: resource busy or locked, copyfile 'C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-cpp.dll' -> 'C:\\Users\\Tom\\AppData\\Roaming\\npm\\node_modules\\@anthropic-ai\\.claude-code-TpuywsRB\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-cpp.dll'\nnpm error A complete log of this run can be found in: C:\\Users\\Tom\\AppData\\Local\\npm-cache\\_logs\\2025-10-10T06_15_00_893Z-debug-0.log\n at xG1 (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1893:388)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.current (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2638:8320)","timestamp":"2025-10-10T06:15:01.964Z"},{"error":"Error: Request was aborted.\n at xP.makeRequest (file:///C:/Users/Tom/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1025:3864)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-10-1
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗