[BUG] crashes with `code: "ECOMPROMISED"`
Resolved 💬 16 comments Opened Jul 15, 2025 by 0xdeafbeef Closed Aug 24, 2025
💡 Likely answer: A maintainer (ashwin-ant, 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.52 (Claude Code)native install - Operating System: fedora 42
- Terminal: gnome term
Bug Description
Randomly crashes after some time, even when idle with
error: ENOENT: no such file or directory, stat '/home/user/.claude/shell-snapshots/snapshot-zsh-1752570785700-ac2kks.sh.lock'
path: "/home/user/.claude/shell-snapshots/snapshot-zsh-1752570785700-ac2kks.sh.lock",
syscall: "stat",
errno: -2,
code: "ECOMPROMISED"
Bun v1.2.15 (Linux x64 baseline)
Steps to Reproduce
- claude
- wait some time - can be from 4 to 30 minutes.
Additional Context
Delete of shell-snapshots, reboot doesn't help.
output of
strace -e trace=file -f -o ../claude_trace.log claude
16 Comments
Everything works with pnpm version, so it's a problem with native install / bun.
This is happening to me as well -- I can trigger it by running a second instance of claude in a different window/pane. Otherwise, I don't see this crash.
I'm on 1.0.53 native install.
I'm also having this issue since yesterday. I cannot even do a single prompt, it immediately crashes
@ajimix @arusso which shells do you use? In my case it's fish, so it's strange to have zsh related error.
Also rm ~/.local/bin/claude && pnpm install -g @anthropic-ai/claude-code
mitigates it
I also have fish
Reverting to v1.0.51 fixes the issue
<img width="829" height="653" alt="Image" src="https://github.com/user-attachments/assets/d042cb76-cf4d-4bdc-a75e-babaecae488a" />
Based on this analysis, it looks like starting a new claude-code instance may delete "stale" lock files which may be determined by the age of lock files without checking if a session is still active.
I'm running zsh.
for me it happens only with a single running instance. I tested restarting my mac, starting
claudeand after some seconds (not always the same amount of seconds) it crashes, even without doing a single prompt. The only way I managed to fix it is to revert to version 1.0.51pnpm install also failed
Did we get any resolution for this issue?
If I revert back to 1.0.51, it is not able to run shell commands for me. Although it doesn't crash, still it is mentioning that the ~/.claude/shell-snapshots/snapshot-zsh-1752767241610-b5v5cp.sh.lock is not available
I think #3580 is the same and now latest 1.0.55 fixed this as they mentioned there.
I've installed 1.0.56 native and it still crashes,
this time with
npm version is ok
Are people still encountering this?
I can't speak for others, but it seems resolved on my end.
seems to be fixed
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.