Skip to content

Conversation

@faustbrian
Copy link

Add fetchWithRetry utility that handles ECONNRESET, ECONNREFUSED, EPIPE, and ETIMEDOUT errors with exponential backoff (100ms, 200ms, 400ms). This prevents hook failures when multiple Claude sessions race to connect to the worker during startup.

Applied to all 5 hooks that make fetch calls to the worker.

@faustbrian faustbrian closed this Jan 2, 2026
@faustbrian faustbrian reopened this Jan 2, 2026
Add fetchWithRetry utility that handles ECONNRESET, ECONNREFUSED,
EPIPE, and ETIMEDOUT errors with exponential backoff (100ms, 200ms,
400ms). This prevents hook failures when multiple Claude sessions
race to connect to the worker during startup.

Applied to all 5 hooks that make fetch calls to the worker.
@faustbrian faustbrian force-pushed the fix/fetch-retry-econnreset branch from 5f89321 to a3473d7 Compare January 2, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant