[BUG] Claude Code is saving all log files in the current working directory
Resolved 💬 4 comments Opened Jan 23, 2026 by ErikHodges Closed Jan 23, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After using the native installer, when launching Claude Code from a WSL terminal, the Claude Code session is creating and writing debug content to the current project directory.
This results in several new folders and files ("cache/", "plugins/", "shell-snapshots/", "todos/", "history.jsonl") being written in the project root.
What Should Happen?
These ephemeral logging artifacts should be written to ~/.claude/
Error Messages/Logs
Steps to Reproduce
- Navigate to desired repository directory.
- Launch Claude Code using
claude
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.17
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗