[BUG] Claude code crashes sometimes when requesting permission to edit a file
Resolved 💬 3 comments Opened Apr 18, 2026 by lucas42 Closed Apr 19, 2026
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?
Sometimes when asking or permission to edit a file, claude code shows a stack trace and stops accepting user input.
What Should Happen?
- Don't crash.
- If you do crash, recover gracefully.
Error Messages/Logs
Edit file · @lucos-site-reliability
../.claude/agents/sre-circleci-api.md
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
…
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Do you want to make this edit to sre-circleci-api.md?
❯ 1. Yes
2. Yes, and allow Claude to edit its own settings for this session
3. No
Esc to cancel · Tab to amend
ERROR q.toolUseContext.getAppState is not a function
file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude-code
/cli.js:8493:15619
- (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude-c
ode/cli.js:8493:15619)
-S0 (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude
-code/cli.js:551:63170)
-G06 (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claud
e-code/cli.js:551:76223)
-yN (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude
-code/cli.js:551:76103)
-G06 (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claud
e-code/cli.js:551:76202)
-yN (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude
-code/cli.js:551:76103)
-G06 (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claud
e-code/cli.js:551:76202)
-yN (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude
-code/cli.js:551:76103)
-G06 (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claud
e-code/cli.js:551:76202)
-yN (file:///home/lucas.linux/.npm-global/lib/node_modules/@anthropic-ai/claude
-code/cli.js:551:76103)
Steps to Reproduce
- Run inside tmux
- Enable experimental team mode
- Start claude
- Do stuff ???
- Crash happens
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.114
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
I'm not putting any effort into debugging this more at my end, because issues I raise here tend to get ignored. So there's no point doing a better report.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗