You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Excessive settings.json file I/O (1000x/sec) after tool calls causes performance degradation in WSL #2906
Claude Code reads .claude/settings.json (and settings.local.json if present) approximately
1000 times per second for 1-2 seconds after tool execution. The excessive file I/O is
observable in Windows Process Monitor (procmon.exe) and occurs through COM Surrogate
(Dllhost.exe) - this is WSL→Windows filesystem access.
Steps to Reproduce
Open Claude Code on Windows (project on Windows filesystem accessed via WSL /mnt/c/)
Configure hooks in .claude/settings.json (PreToolUse and PostToolUse hooks)
Execute any tool (e.g., Bash, Read, Edit)
Monitor file access using Windows Process Monitor (procmon.exe)
Observe Dllhost.exe reading settings files ~1000x/second for 1-2 seconds
Expected Behavior
Settings files should be read once on startup and cached, or at most once per tool execution
if configuration changes need to be detected.
Actual Behavior
Settings files are read ~1000 times per second after each tool call
Reading occurs through COM Surrogate (Dllhost.exe)
Causes 1-2 second delay/freeze after tool execution
Hooks seem to be causing "offline" status and freezing (worse than before using hooks) -
might be related to this issue we're reporting
All MCP servers show as working (basic-memory, mcp-sequentialthinking-tools, serena)
This excessive file I/O could explain the performance degradation with hooks enabled, as each
settings file read through the WSL→Windows boundary has overhead.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
bogini commentedon Jul 17, 2025
Fixed in 1.0.53.
github-actions commentedon Jul 31, 2025
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.