[Bug] Temporary tmpclaude-*-cwd files not cleaned up after session end

Resolved 💬 8 comments Opened Jan 12, 2026 by thomasDreamlands 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:

  1. Use Claude Code with Bash commands across multiple sessions
  2. 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

View original on GitHub ↗

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