[BUG]
Environment
- Platform (select one):
- [X] Anthropic API
- Claude CLI version: 10.0.17
- Operating System: NixOS 25.05
- Terminal: Alacritty
Bug Description
Currently working on a project that frequently makes reference to TPM, but claude consistently thinks everything should be TMP.
Steps to Reproduce
- Have a project that references TPM throughout the codebase
- Use Claude Code for that codebase to do anything
Expected Behavior
Correctly reference TPM
Actual Behavior
Thinks all instances of TPM refer to tmp
Additional Context
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: File does not exist. Current working directory: /home/user/Documents/dotfiles
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: File does not exist. Current working directory: /home/user/Documents/dotfiles
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: File does not exist. Current working directory: /home/user/Documents/dotfiles
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs)
and
Really frustrating behavior:
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Let me check what the actual text is:
● Read(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: File does not exist. Current working directory: /home/user/Documents/dotfiles
● Read(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿ Read 5 lines (ctrl+r to expand)
● I see the issue - I need to fix the typo from PersistentTmpHandle to PersistentTmpHandle:
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Actually the error message shows it should be PersistentTmpHandle not PersistentTmpHandle. Let me fix this:
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tmp/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Update(../Projects/nixos-deteministic-keys/packages/deterministic-keys-core/src/tpm/sealing.rs) ⎿ Error: No changes to make: old_string and new_string are exactly the same.
● Wait, let me check the exact text in the file at line 27. According to the error, it's looking for the type PersistentTmpHandle but the correct one is PersistentTmpHandle. Let me fix this: