claude-code - 💡(How to fix) Fix Stillborn sessions: 16-28 generic `internal_error` events at startup, no API call made (2.1.132 + 2.1.133)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

In Claude Code 2.1.132 and 2.1.133, I observe a small fraction of session boots where the process emits a burst of 16-28 internal_error events within ~600ms of startup, then exits silently without making any API call. The session is "stillborn" — no user prompt is ever accepted.

I'd like to:

  1. Surface this pattern as a known issue if it's already tracked.
  2. Provide enough diagnostic detail to help if it isn't.

Error Message

Both sessions also emitted 4 mcp_server_connection events with status: connected (so MCP servers came up fine), then the error burst fires, then the process exits.

Common signal across error events

Every error event in both sessions shares:

  • error_name: "Error" (the generic Error constructor, no further class) So no stack trace, no error class, no request context — just a count of unhandled errors. I don't have enough surface to file a specific root cause; whatever is throwing isn't being attributed. If there's a way to surface more detail in the internal_error event payload (stack trace, originating module, error class name) that would help me file a more specific issue if this recurs. Right now the OpenTelemetry layer captures the event but not the cause.

Root Cause

So no stack trace, no error class, no request context — just a count of unhandled errors. I don't have enough surface to file a specific root cause; whatever is throwing isn't being attributed.

RAW_BUFFERClick to expand / collapse

Summary

In Claude Code 2.1.132 and 2.1.133, I observe a small fraction of session boots where the process emits a burst of 16-28 internal_error events within ~600ms of startup, then exits silently without making any API call. The session is "stillborn" — no user prompt is ever accepted.

I'd like to:

  1. Surface this pattern as a known issue if it's already tracked.
  2. Provide enough diagnostic detail to help if it isn't.

Pattern observed

Over a 3-day window of normal use I captured two occurrences in the OpenTelemetry log stream:

versionsession.ideventsdurationapi_calls
2.1.132768ea807-064d-456c-b48c-7aa7823eb75416 × internal_error586ms0
2.1.133e69c0831-1d71-498c-9f65-60dfa8ac057728 × internal_error270ms0

Both sessions also emitted 4 mcp_server_connection events with status: connected (so MCP servers came up fine), then the error burst fires, then the process exits.

Common signal across error events

Every error event in both sessions shares:

  • event.name: "internal_error"
  • body: "claude_code.internal_error"
  • error_name: "Error" (the generic Error constructor, no further class)
  • severity: "" (empty)
  • trace_id: "" (empty)
  • span_id: "" (empty)
  • request_id: null
  • No model, no tool_name, no mcp_server_name

So no stack trace, no error class, no request context — just a count of unhandled errors. I don't have enough surface to file a specific root cause; whatever is throwing isn't being attributed.

The errors arrive batched in groups of ~6 with event.sequence 0-5 repeating, suggesting some kind of retry loop or fan-out pattern that fails 6 ways.

Reproduction

I cannot reliably reproduce. Both sessions started normally:

  • cd ~/workspace/somewhere && claude (no resume, no special args)
  • KDE on Ubuntu 24.04, XDG_CURRENT_DESKTOP=KDE
  • konsole terminal
  • Standard set of MCP servers (Atlassian, Microsoft Learn, plugin:slack:slack, plus one user-scope MCP)
  • ~5 plugins enabled (slack, code-review, superpowers, multi-agent-code-review, session-report, claude-hud)
  • ~6 user-scope hook scripts

The two failures are 3 days apart, suggesting a race condition rather than a deterministic config problem. Most session boots succeed cleanly.

Diagnostic ask

If there's a way to surface more detail in the internal_error event payload (stack trace, originating module, error class name) that would help me file a more specific issue if this recurs. Right now the OpenTelemetry layer captures the event but not the cause.

Environment

  • Claude Code 2.1.132 and 2.1.133 (same pattern on both)
  • Ubuntu 24.04, brew install via /home/linuxbrew/.linuxbrew/bin/claude
  • Node v24.13.1
  • OTel telemetry enabled (CLAUDE_CODE_ENABLE_TELEMETRY=1, OTEL_LOGS_EXPORTER=otlp)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING