[BUG] New Claude Code sessions hang indefinitely - existing sessions work fine

Resolved 💬 10 comments Opened Jan 28, 2026 by tkdgus79192-art Closed Mar 15, 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?

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 --version
  • claude --help
  • claude auth --help
  • claude config --help
  • Existing terminal sessions that were opened before the issue started

## What hangs

  • claude (interactive mode)
  • claude auth login
  • claude auth logout
  • claude auth status
  • claude update
  • claude --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

  1. Fresh install via curl -fsSL https://claude.ai/install.sh | sh - still hangs
  2. Fresh install via npm install -g @anthropic-ai/claude-code - still hangs
  3. Completely removed ~/.claude and ~/.local/share/claude - still hangs
  4. Removed plugins, skills, commands directories - still hangs
  5. Minimal settings.json - still hangs
  6. Different terminal settings (TERM=dumb, NO_COLOR=1) - still hangs
  7. Clean bash environment (bash --norc --noprofile) - still hangs
  8. Running from different directories - still hangs
  9. --resume with 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 login
  • claude auth logout
  • claude auth status
  • claude update
  • claude --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

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗