Skip to content

[BUG] creates tmpclaude-*-cwd files in the current working directory #17600

@seeper0

Description

@seeper0

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code 2.1.5 creates tmpclaude-*-cwd files in the current working directory instead of /tmp. These files are never cleaned up and accumulate in project directories.

What Should Happen?

This appears to be a regression from the original issue #8856, where files were created in /tmp/claude-*-cwd. Now they are created directly in the working directory with a different naming pattern (tmpclaude-*-cwd).

Error Messages/Logs

Steps to Reproduce

  1. Start Claude Code in a project directory
  2. Execute several bash commands
  3. Check the working directory for tmpclaude-*-cwd files

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.5

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

Metadata

Metadata

Assignees

Labels

area:toolsbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions