Shell Snapshot Path Parsing Fails for Usernames with Spaces
Bug Description
Claude Code v1.0.48 Bug Report: Shell Snapshot System Fails with Usernames Containing Spaces
Summary
Claude Code v1.0.48 introduced a regression where the Bash tool fails completely for users with spaces in their usernames due to
improper path parsing in the new shell snapshot system.
Environment
- Claude Code Version: 1.0.48
- OS: macOS (Darwin 24.5.0)
- Shell: zsh
- Username: Contains space (e.g., John Doe)
Bug Details
Error: zsh:source:1: no such file or directory: /Users/John
Root Cause: v1.0.48 change "Moved shell snapshots from /tmp to ~/.claude for more reliable Bash tool calls" breaks path parsing
for usernames with spaces. Shell snapshot system attempts to source /Users/John instead of /Users/John Doe/.
Steps to Reproduce
- Have macOS username with spaces (e.g., "John Doe")
- Use Claude Code v1.0.48 Bash tool
- Any command triggers the error
Impact
- Severity: Critical - All Bash tool functionality broken
- Affected Users: Anyone with spaces in username
- Regression: Worked fine in v1.0.45
Workaround
sudo ln -s "/Users/John Doe" /Users/John
Expected Fix
Shell snapshot system should properly quote/escape paths containing spaces when generating snapshot files.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.48
- Feedback ID: 168279b6-794e-4384-9677-a9728ed8dc6e
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗