[BUG] Claude misspells username in working directory path, causing permission prompts

Resolved 💬 1 comment Opened Jun 1, 2026 by harsel Closed Jul 4, 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?

Same as https://github.com/anthropics/claude-code/issues/17893, which has been closed without a fix.

Claude frequently gets the user folder wrong when reading files. It misspells my user name. That causes permission prompts as it tries to access files outside of the current directory.

For example: I'm in a repository in /Users/harald.koppe/repositories/... and ask claude to analyze something. Then claude tries thinks like Read(/Users/harold.lastname/repositories/... or Bash(find /Users/haar.koppe/repositories/....

What Should Happen?

Claude should read files from the current working directory, not some non-existing made-up directory.

Error Messages/Logs

Steps to Reproduce

See description. It's not always reproducible.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.159 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

My ~/.claude/CLAUDE.md contains The user is called Harald Koppe. The home folder is /Users/harald.koppe`. Doesn't help. I'd appreciate any other workarounds.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗