[BUG] New Claude Code sessions hang indefinitely - existing sessions work fine
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?
Environment
- Claude Code version: 2.1.20
- Node.js version: v18.20.8
- OS: Linux (Ubuntu, kernel 5.4.0-150-generic)
- Installation method: Tried both native binary and npm
## Problem
New Claude Code sessions hang indefinitely during initialization. Existing/already-open sessions
continue to work fine. This issue started approximately 12-15 hours ago.
## What works
claude --versionclaude --helpclaude auth --helpclaude config --help- Existing terminal sessions that were opened before the issue started
## What hangs
claude(interactive mode)claude auth loginclaude auth logoutclaude auth statusclaude updateclaude --resume <session-id>echo "hello" | claude --print
## Debug log output
Failed to check enabledPlatforms: TypeError: lK is not a function
[init] configureGlobalMTLS starting
[init] configureGlobalMTLS complete
[init] configureGlobalAgents starting
[init] configureGlobalAgents complete
(Hangs after this point)
## What I've tried
- Fresh install via
curl -fsSL https://claude.ai/install.sh | sh- still hangs - Fresh install via
npm install -g @anthropic-ai/claude-code- still hangs - Completely removed
~/.claudeand~/.local/share/claude- still hangs - Removed plugins, skills, commands directories - still hangs
- Minimal settings.json - still hangs
- Different terminal settings (TERM=dumb, NO_COLOR=1) - still hangs
- Clean bash environment (
bash --norc --noprofile) - still hangs - Running from different directories - still hangs
--resumewith existing session ID - still hangs
## Additional context
- Other users on the same server can start new Claude sessions without issues
- Same Node.js version as working users
- Network connectivity to api.anthropic.com is fine (verified with curl)
- API responds correctly (tested with curl)
- No proxy or special environment variables set
- Enterprise/team account
## Workaround
Keeping existing terminal sessions open - they continue to function normally.
What Should Happen?
claude cli should open just fine at terminal.
previously opened claude cli works fine.
Error Messages/Logs
Steps to Reproduce
at terminal
claude , it then hangs.
What hangs
claude(interactive mode)claude auth loginclaude auth logoutclaude auth statusclaude updateclaude --resume <session-id>echo "hello" | claude --print
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.20 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
same thing happens at vs code
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗