Skip to content

[BUG] Claude Code gets stuck sporadically #16590

@Anthoooooooony

Description

@Anthoooooooony

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

After I send a message, Claude Code sometimes freezes for 5 minutes straight. The UI shows 0 tokens used and just nothing happens. Eventually Claude Code recovers like nothing was wrong.

What Should Happen?

It should respond normally without the long freeze.

Error Messages/Logs

Steps to Reproduce

  1. Start Claude Code
  2. Send any message
  3. UI freezes with "0 tokens used" showing — this happens sporadically
  4. Have to wait or restart Claude Code

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Versions from 2025-09 worked without this issue

Claude Code Version

2.0.76 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Dug into the network requests and realized there's always a pending request to statsig.anthropic.com when this happens.

Quick proof:

  • Force resolve statsig.anthropic.com to localhost
  • The hang goes away

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions