[BUG] Claude Code hangs silently with corrupted config instead of showing clear error

Status Closed — not planned
Reported on v2.1.5
Maintainer reply None cached
Activity 11 comments · opened Jan 27, 2026 · closed Mar 3, 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?

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

  1. Have a corrupted file in ~/.claude/ directory (cache, statsig, etc.) or corrupted ~/.claude.json
  2. Run claude or claude login
  3. 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

  1. Create a corrupted state by having invalid/inconsistent files in ~/.claude/ directory

(This can happen naturally when OAuth token expires or session is interrupted)

  1. Run: claude login
  1. Observe: Process hangs with blank screen - no output, no prompt, nothing
  1. Check debug log: tail ~/.claude/debug/latest

Shows only: "Failed to check enabledPlatforms: TypeError: lK is not a function"

  1. Workaround that does NOT fix it:

rm ~/.claude/.credentials.json
claude login
# Still hangs

  1. 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_

View original on GitHub ↗

11 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2810
  2. https://github.com/anthropics/claude-code/issues/3117
  3. https://github.com/anthropics/claude-code/issues/21130

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

timecarlesk · 7 months ago

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 ~/.claude does NOT work for me - the issue persists after reinstall.

llioor · 7 months ago

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. /login doesn't work correctly and I can not change the model with /model it is stuck forever.

timecarlesk · 7 months ago

I rolled back to v2.1.3 and it works fine now.

thehoff-pig · 7 months ago

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.json works as does removing the cached feature flags cachedGrowthBookFeatures from the .claude.json)

llioor · 7 months ago
drwxrwxr-x 12 lior lior     4096 Jan 28 01:12 .claude
-rw-------  1 lior lior     3385 Jan 26 19:51 .claude.json
-rw-------  1 lior lior     3385 Jan 26 19:51 .claude.json.backup

remove those files and try to login again

thehoff-pig · 7 months ago

@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 cachedGrowthBookFeatures section 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.

llioor · 7 months ago

I see we have new version on the Claude code plugins.
Someone report a fix?

thehoff-pig · 6 months ago

I updated to 2.1.29 this morning, and the hanging issues appear to be resolved.

github-actions[bot] · 6 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 5 months 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.