[Bug] Performance Degradation: Persistent Slowdown After PostToolUse:Edit Hook

Resolved 💬 8 comments Opened Oct 4, 2025 by Anthony-Bible Closed Jan 9, 2026

Bug Description
Claude is very very very slow after running a hook that it seems like it freezes. It's not after every hook but seems to accumulate. It seems like it freezes but after leaving it for 30+ minutes it does seem to resume. It definitely isn't the hook causing it as the hook does complete fully. Here's some other observations: Okay so I am able to replicate it repeatedly where it's kinda getting annoying. Some more info:

  • it's always after my PostToolUse:Edit.
  • Claude is certainly doing something as it's using a bit over 1 cpu when frozen.
  • The interface is definitely frozen, pressing enter, escape or even ctrl+c twice doesn't help.
  • in the debug log it's after it writes .claude.json:
[DEBUG] Temp file written successfully, size: 182516 bytes
[DEBUG] Applied original permissions to temp file
[DEBUG] Renaming /home/<user>/.claude.json.tmp.3099408.1759236081994 to /home/<user>/.claude.json
[DEBUG] File /home/<user>/.claude.json written atomically

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.0.5
  • Feedback ID: c9a5cabc-33ab-4ec2-995a-29fe8388491f

Errors

[{"error":"MaxFileReadTokenExceededError: File content (31002 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 lBB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async QO (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n    at async file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-03T14:13:27.404Z"},{"error":"Error: Connection error.\n    at yP.makeRequest (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1034:4466)\n    at async TZ1 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1045:4233)\n    at async lBB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1684:375)\n    at async Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async QO (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n    at async file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:2145:6860\n    at async Promise.all (index 0)\n    at async nP6 (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:2145:6547)\n    at async DW (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:2145:3253)\n    at async Promise.all (index 0)","timestamp":"2025-10-03T14:41:59.187Z"},{"error":"MaxFileReadTokenExceededError: File content (25999 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 lBB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async QO (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n    at async file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-03T14:57:50.930Z"},{"error":"MaxFileReadTokenExceededError: File content (30925 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 lBB (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1684:404)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async Object.call (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1679:1010)\n    at async QO (file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1120:30497)\n    at async file:///home/anthony/.nvm/versions/node/v20.19.4/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:1322","timestamp":"2025-10-03T14:57:56.208Z"},{"error":"MaxFileReadTokenExceededError: File content (30925 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specifi

Note: Error logs were truncated.

View original on GitHub ↗

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