[Bug] Temporary tmpclaude-*-cwd files not cleaned up after session end
Status Closed — not planned
Reported on v2.1.5
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 8 comments · opened Jan 12, 2026 · closed Feb 27, 2026
Description:
Claude Code creates tmpclaude-XXXX-cwd files to track shell working directory state, but never cleans them up. They accumulate over time in the project directory.
Repro:
- Use Claude Code with Bash commands across multiple sessions
- Observe tmpclaude-*-cwd files accumulating in the working directory
Expected: Temp files cleaned up on session end or startup
Actual: Files persist indefinitely, requiring manual cleanup
Workaround: find . -name 'tmpclaude-*-cwd' -delete
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.5
- Feedback ID: ec4c7ec7-a6d3-4f85-9b07-8c4a9f7ded7b
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗