[BUG] LocalSessionManager polls git status every 10s on non-git directories, generating 6000+ errors
Resolved 💬 2 comments Opened Feb 26, 2026 by bjlin-meshy Closed Mar 27, 2026
Description
LocalSessionManager repeatedly runs git status on directories that are not git repositories, producing thousands of identical error log entries. In this log bundle spanning ~18 days, 6,175 identical errors were recorded.
Environment
- OS: Windows 11 Pro 10.0.26100
- Claude Desktop: v1.1.4173
- SDK: v2.1.51
Error Message (repeated 6,175 times)
[error] [LocalSessionManager] Failed to check git status: git exited with code 128:
fatal: not a git repository (or any of the parent directories): .git
The polling interval appears to be ~10 seconds, running continuously for every active session regardless of whether the working directory is a git repo.
Additional Related Errors
On one occasion (2026-02-24), the repeated git spawning combined with memory pressure caused:
git exited with code 1: error launching git: The paging file is too small for this operation to complete.git exited with code 3221225794(STATUS_DLL_INIT_FAILED — git.exe couldn't load its DLLs)
Expected Behavior
LocalSessionManagershould check once whether a directory is a git repository before starting the polling loop- If not a git repo, skip the
git statuscheck entirely - At minimum, suppress repeated identical errors after the first failure
Impact
- Pollutes logs, making real errors hard to find
- Wastes CPU/memory by spawning git processes every 10 seconds
- Under memory pressure, the repeated spawning contributed to system instability
🤖 Generated with Claude Code
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗