[BUG] Claude Code hangs silently with corrupted config instead of showing clear error
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?
Claude Code hangs indefinitely with no output when configuration files are corrupted. The only indication is an unhelpful error in debug logs: lK is not a function.
## Steps to Reproduce
- Have a corrupted file in
~/.claude/directory (cache, statsig, etc.) or corrupted~/.claude.json - Run
claudeorclaude login - Process hangs with blank screen - no output, no error message
## Expected Behavior
Claude should either:
- Display a clear error message indicating which config file is corrupted
- Offer to reset/clean the corrupted configuration automatically
- At minimum, not hang silently
## Actual Behavior
- Claude hangs indefinitely with no output
- Debug logs (
~/.claude/debug/latest) only show:
Failed to check enabledPlatforms: TypeError: lK is not a function
- No indication of what's wrong or how to fix it
## Workaround
Partial fix (doesn't always work):
```bash
rm ~/.claude/.credentials.json
Full fix (not always works):
rm -rf ~/.claude ~/.claude.json
claude login
Additional Context
- Tested on multiple servers with same result
- Tested versions: 2.1.5, 2.1.18, 2.1.20 - all exhibit same behavior
- The error lK is not a function appears to be minified code that fails to check platform configuration when config state is inconsistent
Environment
- OS: Linux (RHEL/CentOS)
- Node: v18.20.8
- Claude Code: 2.1.20
---
What Should Happen?
Claude should detect corrupted configuration files and display a clear error message like: "Configuration file ~/.claude/cache/xxx is corrupted. Run 'rm -rf ~/.claude' to reset." Instead of hanging silently, it should either auto-recover or guide the user to fix the
issue.
Error Messages/Logs
Steps to Reproduce
- Create a corrupted state by having invalid/inconsistent files in ~/.claude/ directory
(This can happen naturally when OAuth token expires or session is interrupted)
- Run: claude login
- Observe: Process hangs with blank screen - no output, no prompt, nothing
- Check debug log: tail ~/.claude/debug/latest
Shows only: "Failed to check enabledPlatforms: TypeError: lK is not a function"
- Workaround that does NOT fix it:
rm ~/.claude/.credentials.json
claude login
# Still hangs
- Workaround that DOES fix it:
rm -rf ~/.claude ~/.claude.json
claude login
# Works - shows login prompt
Claude Model
Other
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.20
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
_No response_
11 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I'm experiencing the same issue in a Remote SSH environment.
My error:
Failed to check enabledPlatforms: TypeError: undefined is not an object (evaluating 'd7.join')Environment: VSCode Remote SSH + RHEL 8.10 + Claude Code 2.1.20
The workaround
rm -rf ~/.claudedoes NOT work for me - the issue persists after reinstall.I have the same issue, I believe it is related to port forwarding of the requests between the remote ssh and the agent for authentication.
/logindoesn't work correctly and I can not change the model with/modelit is stuck forever.I rolled back to v2.1.3 and it works fine now.
Same issue for me. I think it might also have to do with not being able to access statsig. If I run with
DISABLE_TELEMETRY=1 claude, then it also works, but I lose all history, etc. (Removing.claude.jsonworks as does removing the cached feature flagscachedGrowthBookFeaturesfrom the.claude.json)remove those files and try to login again
@llioor as multiple users posted above (including myself), this is a known "workaround" that only works temporarily. In my case, on loading claude again, claude adds the
cachedGrowthBookFeaturessection to the json which causes the issue all over again. I even try to correct the json and change permissions to read only (chmod 444); however, the claude binary still finds a way to overwrite it as the file changes but still has the same perms. It's interesting that a full rollback to 2.1.3 is the only thing that didn't cause the problem to happen again.I see we have new version on the Claude code plugins.
Someone report a fix?
I updated to 2.1.29 this morning, and the hanging issues appear to be resolved.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.