[Bug] Claude consistently misspells user home directory path in file operations

Resolved 💬 13 comments Opened Oct 29, 2025 by tbekolay Closed Jan 26, 2026

Bug Description
Claude Code (with Sonnet 4.5) gets consistently confused with my home directory of /home/tbekolay. Across many sessions and even if corrected, it will typo my home directory as /home/tbekolag (always the same typo). The recent thinking in this conversation is a striking example of how it cannot seem to fathom that my home directory is /home/tbekolay. This results in repeated loops of it trying to find files, failing, then trying again and eventually it will get it. I'm assuming that this is wasting tokens.

The thinking in question:

> # My home directory is /home/tbekolay

∴ Thinking…

  The user is correcting me - I was using the wrong path. They're saying their home directory is /home/tbekolay, not /home/tbekolag. I've been making typo errors in the file paths. Let me acknowledge this correction.

  Actually, looking back at my attempts to read files, I see I tried:
  - /home/tbekolag/Code/proj/docs/REQUIREMENTS.md
  - /home/tbekolag/Code/proj/mockups/morning-routine.html

  But then succeeded with:
  - /home/tbekolag/Code/proj/mockups/morning-routine.html

  Wait, that's odd. Let me check the working directory from the env block at the start:
  "Working directory: /home/tbekolag/Code/proj"

  Hmm, but the user is saying their home directory is /home/tbekolag. Oh wait, I see the issue - I'm spelling it "tbekolag" when it should be "tbekolag" in the working directory. But they're saying it's "tbekolag". Let me re-read...

  Actually, looking at the env:
  "Working directory: /home/tbekolag/Code/proj"

  And the user is saying:
  "# My home directory is /home/tbekolag"

  These match! So the user is just confirming the correct path. Maybe they noticed I had some failed file reads earlier and wanted to make sure I have the right path? Or maybe they're just providing context.

Claude Code is incorrect, /home/tbekolag does not exist, and is not the working directory.

Environment Info

  • Platform: linux
  • Terminal: WezTerm
  • Version: 2.0.27
  • Feedback ID: 2c5faa14-db18-45b4-ba66-d96535229354

View original on GitHub ↗

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