Skip to content

tracking: unreachable worker causes Stop hook exit-2 → infinite retry loop blocking all Claude Code prompts #2966

Description

@thedotmack

Root Cause

When the worker is unreachable, hooks emit exit code 2 (Claude Code's blocking feedback contract). Claude Code treats this as a blocking error, generates a new model turn, which ends the session again, which fires the Stop hook again — still failing — creating a tight infinite retry loop. The consecutive-failure counter escalates without a circuit breaker, eventually blocking all prompt processing. Related: the hook emits no visible error to stderr while doing this, making the failure silent.

Tracked Items

Issues

PRs

Resolution

This is the canonical tracking issue for this root cause. Individual issues and PRs listed above will be closed in favor of this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugtrackingCanonical issue consolidating duplicate bug reports by root cause

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions