[BUG] shell-snapshot is gone

Status Fixed / completed
Maintainer reply ✓ Yes — wolffiex
Activity 15 comments · opened Jul 16, 2025 · closed Jul 17, 2025
💡 Likely answer: A maintainer (wolffiex, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.53
  • Operating System: ArchLinux
  • Terminal: Gnome Terminal

Bug Description

For the first time I started getting this error for every single Bash tool claude is trying to run:

● Now let me start the server and test the improved design:

● Bash(source venv/bin/activate && python run.py &)
  ⎿  Error: zsh:source:1: no such file or directory: 
     /home/pmatos/.claude/shell-snapshots/snapshot-zsh-415f5359.sh

● Bash(source venv/bin/activate && python run.py &)
  ⎿  Error: zsh:source:1: no such file or directory: 
     /home/pmatos/.claude/shell-snapshots/snapshot-zsh-415f5359.sh

● Bash(source venv/bin/activate && python run.py &)
  ⎿  Error: zsh:source:1: no such file or directory: 
     /home/pmatos/.claude/shell-snapshots/snapshot-zsh-415f5359.sh

● Let me try a different approach:

● Bash(source _venv/bin/activate && python run.py &)
  ⎿  Error: zsh:source:1: no such file or directory: 
     /home/pmatos/.claude/shell-snapshots/snapshot-zsh-415f5359.sh

● Let me try a different approach without the problematic shell snapshot:

● Bash(_venv/bin/python run.py &)
  ⎿  Error: zsh:source:1: no such file or directory: 
     /home/pmatos/.claude/shell-snapshots/snapshot-zsh-415f5359.sh

● Bash(_venv/bin/python run.py &)
  ⎿  Error: zsh:source:1: no such file or directory: 
     /home/pmatos/.claude/shell-snapshots/snapshot-zsh-415f5359.sh

● Let me try a simpler approach:

● Bash(_venv/bin/python run.py &)
  ⎿  No (tell Claude what to do differently)

I have another terminal running /init on another project, but unsure it's related. I have certainly ran multiple claude's simultaneously without any problems.

View original on GitHub ↗

15 Comments

magsudhajiyev · 1 year ago

I am having the same issue for the last couple of days.

MichaelSheinman · 1 year ago

running into the same issue, I wonder if it's because I'm using multiple terminals too

Error: zsh:source:1: no such file or directory: 
     /Users/.claude/shell-snapshots/snapshot-zsh-db7bfa20.sh```
gregblass · 1 year ago

Running into this. Also using multiple terminals. Now my Claude Code cannot delete files. What can we do to resolve this? This is a major issue and is causing serious disruptions in my workflow.

gregblass · 1 year ago

Anyone else who ran into this: Use rm -rf ~/.claude/shell-snapshots/ and then restart Claude Code.

wolffiex collaborator · 1 year ago

Hi everyone, I'm really sorry for this trouble. It seems we found the limit of our lockfile implementation 😅

We switched to an in-memory implementation of the snapshot. If you need to see it for debugging purposes, claude will write to a file when you run with --debug

Please let us know if you have any more trouble!

Manouchehri · 1 year ago

@wolffiex I'm running 1.0.53 and still ran into this error. It looks like ~/.claude/shell-snapshots/ is still used?

wolffiex collaborator · 1 year ago

Oh sorry yes, I forgot to update this issue. We published 1.0.54 yesterday but it caused some problems for folks who have big shell environments. We have a fix for that which should go out with 1.0.55 today. I'll try to promote the new build early today so folks get this fix. Sorry again for the trouble.

iskng · 1 year ago

In the meantime would rm -rf ~/.claude/shell-snapshots/ be fine

wolffiex collaborator · 1 year ago

That will break in-progress sessions.

Manouchehri · 1 year ago
In the meantime would rm -rf ~/.claude/shell-snapshots/ be fine

I did that too, but still got a crash after.

wolffiex collaborator · 1 year ago

Ok 1.0.55 is out with the fix. Please let us know how it goes for you.

thanhbn · 1 year ago

i still got this issue, even i updated the latest version 1.0.56.
Environment:

  • WSL2: Linux mAI 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
  • Windows 10 Pro.
  • Log: ⎿ Error: /bin/bash: line 1: /home/admin88/.claude/shell-snapshots/snapshot-bash-1752999598585-wk2ot8.sh: No such file or directory
  • Install by npm
wolffiex collaborator · 1 year ago

@ant-kurt is this a Windows-specific thing you think?

ant-kurt collaborator · 1 year ago

@thanhbn I'm not able to repro this one on v1.0.56 in WSL - can you try clearing out the /home/admin88/.claude/shell-snapshots folder and restarting claude to see if it still occurs?

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.