Skip to content

[BUG] Phantom 'Generating...' state - UI stuck after task completion, 0 tokens consumed #20171

@ThatDragonOverThere

Description

@ThatDragonOverThere

Description

After completing a task, Claude Code gets stuck in a phantom "Generating..." state. The UI shows it's working but consumes 0 tokens indefinitely.

Reproduction

  1. Work on a multi-step implementation task
  2. Claude completes all tasks and outputs a summary
  3. Status shows "Churned for Xm Ys" (in my case: 22m 13s)
  4. Then UI switches to "Generating... (esc to interrupt · 8m 22s · ↓ 0 tokens)"
  5. Token counter stays at 0, no progress is made
  6. User must press Esc to interrupt

Evidence from Session

● V9.57 Implementation Complete!
  [... detailed summary of completed work ...]

✻ Churned for 22m 13s

✶ Generating… (esc to interrupt · 8m 22s · ↓ 0 tokens)

The "↓ 0 tokens" indicates nothing is actually being generated despite the UI claiming it is.

Expected Behavior

After completing a task and outputting a summary, Claude Code should:

  • Return to the input prompt, OR
  • Actually generate content if there's more to do

It should NOT hang in a "Generating..." state indefinitely with 0 token consumption.

Environment

  • Claude Code CLI on Windows
  • Model: claude-opus-4-5-20251101
  • Session involved multi-step implementation with ~5 tasks

Impact

  • Wastes user time waiting for "generation" that never happens
  • Forces user to manually interrupt
  • Unclear if any work was lost or if session state is corrupted after interrupt

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions