[Bug] /clear Command Fails to Actually Reset Conversation Context

Resolved 💬 6 comments Opened Oct 21, 2025 by dansems Closed Feb 5, 2026

Bug Description
I ran /clear and the conversation was not cleared. Ther terminal still displayed "Context left until auto-compact: 11%". Claude then told me that "/clear doesn't actually reset context or token usage. It simply hides the conversation from view."

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.14
  • Feedback ID: 97cac49d-fc6c-480c-8d4d-40f5889afb1f

Errors

[{"error":"sg1: Failed to install new version of claude:  npm error code EACCES\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -13\nnpm error Error: EACCES: permission denied, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error     at async Object.rename (node:internal/fs/promises:783:10)\nnpm error     at async moveFile (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js:30:5)\nnpm error     at async Promise.allSettled (index 0)\nnpm error     at async [reifyPackages] (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)\nnpm error     at async Arborist.reify (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)\nnpm error     at async Install.exec (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/lib/commands/install.js:150:5)\nnpm error     at async Npm.exec (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/lib/npm.js:207:9)\nnpm error     at async module.exports (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/lib/cli/entry.js:74:5) {\nnpm error   errno: -13,\nnpm error   code: 'EACCES',\nnpm error   syscall: 'rename',\nnpm error   path: '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code',\nnpm error   dest: '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It is likely you do not have the permissions to access this file as the current user\nnpm error\nnpm error If you believe this might be a permissions issue, please double-check the\nnpm error permissions of the file and its containing directories, or try running\nnpm error the command again as root/Administrator.\nnpm error A complete log of this run can be found in: /Users/dylanansems/.npm/_logs/2025-10-20T13_12_00_602Z-debug-0.log\n    at KX1 (file:///Users/dylanansems/Library/pnpm/global/5/.pnpm/@anthropic-ai+claude-code@2.0.14/node_modules/@anthropic-ai/claude-code/cli.js:1749:389)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///Users/dylanansems/Library/pnpm/global/5/.pnpm/@anthropic-ai+claude-code@2.0.14/node_modules/@anthropic-ai/claude-code/cli.js:2627:11253","timestamp":"2025-10-20T13:12:01.077Z"},{"error":"sg1: Failed to install new version of claude:  npm error code EACCES\nnpm error syscall rename\nnpm error path /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V\nnpm error errno -13\nnpm error Error: EACCES: permission denied, rename '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code' -> '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error     at async Object.rename (node:internal/fs/promises:783:10)\nnpm error     at async moveFile (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js:30:5)\nnpm error     at async Promise.allSettled (index 0)\nnpm error     at async [reifyPackages] (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)\nnpm error     at async Arborist.reify (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)\nnpm error     at async Install.exec (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/lib/commands/install.js:150:5)\nnpm error     at async Npm.exec (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/lib/npm.js:207:9)\nnpm error     at async module.exports (/opt/homebrew/Cellar/node@22/22.14.0_1/lib/node_modules/npm/lib/cli/entry.js:74:5) {\nnpm error   errno: -13,\nnpm error   code: 'EACCES',\nnpm error   syscall: 'rename',\nnpm error   path: '/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code',\nnpm error   dest: '/opt/homebrew/lib/node_modules/@anthropic-ai/.claude-code-2DTsDk1V'\nnpm error }\nnpm error\nnpm error The operation was rejected by your operating system.\nnpm error It is likely you do not have the permissions to access this file as the current user\nnpm error\nnpm error If you believe this might be a permissions issue, please double-check the\nnpm error permissions of the file and its containing directories, or try running\nnpm error the comm

Note: Error logs were truncated.

View original on GitHub ↗

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