Windows: Bash tool creates tmpclaude-*-cwd files in working directory

Resolved 💬 5 comments Opened Jan 12, 2026 by CN-liuzhiyang Closed Apr 18, 2026

Environment

  • OS: Windows
  • Claude Code version: Latest

Problem

Each Bash tool invocation creates a file named tmpclaude-xxxx-cwd (e.g., tmpclaude-b685-cwd) in the current working directory.

Expected

Temp files should be created in system temp directory (%TEMP% or /tmp).

Actual

Files are created in the working directory with malformed names - appears tmp/claude-xxxx-cwd is being concatenated as tmpclaude-xxxx-cwd (missing path separator).

Reproduction

  1. Run any Bash command on Windows
  2. Check working directory - new tmpclaude-*-cwd file appears
  3. File content is the current working directory path (e.g., /e/H72Cortex)

View original on GitHub ↗

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