[BUG] Edit Tool Modifies File CreationTime on Windows Powershell, Breaking Timestamp-Based UUID Systems
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?
Environment: Windows 10, Claude Code + Claudian integration with Obsidian vault
When using Claude Code's Edit tool to modify files on Windows, the file's CreationTime (file creation timestamp) is unexpectedly updated to the current time instead of preserving the original creation timestamp.
What Should Happen?
The Edit tool should preserve the original file creation timestamp, only updating LastWriteTime and LastAccessTime.
Error Messages/Logs
Steps to Reproduce
- Set up test environment:
- Windows 10 system, Powershell 7
- Create a test directory: mkdir test-timestamp && cd test-timestamp
- Create a simple test file: echo "Original content" > test-file.md
- Record original creation time:
powershell -Command "(Get-Item 'test-file.md').CreationTime.ToString('yyyy-MM-dd HH:mm:ss.fff')"
Example output: 2026-01-21 22:40:58.495
- Use Claude Code Edit tool:
- Via Claude Code interface or command, edit the file content
Example edit: Change "Original content" to "Modified content"
- Check creation time after edit:
powershell -Command "(Get-Item 'test-file.md').CreationTime.ToString('yyyy-MM-dd HH:mm:ss.fff')"Example output: 2026-01-21 22:43:09.123 (DIFFERENT from original!)
- Verify all timestamps changed:
powershell -Command "$f = Get-Item 'test-file.md'; $f | Format-List CreationTime, LastWriteTime, LastAccessTime"
Output shows all three timestamps are now identical (should only have LastWriteTime updated)
Claude Model
Other
Is this a regression?
I don't know
Last Working Version
2.1.14
Claude Code Version
2.1.14
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗