Skip to content

1.74.12

Choose a tag to compare

@github-actions github-actions released this 10 Jun 09:11
· 5 commits to main since this release
  • e921b34: fix(retry): treat "socket connection was closed unexpectedly" as a transient, retryable error (#1881)

The Claude/Codex CLI surfaces transient network disconnects (the Anthropic SDK's
underlying fetch() socket dropping mid-stream) as a synthetic error:
API Error: The socket connection was closed unexpectedly. Previously
classifyRetryableError() did not recognise this family of errors, so a single
dropped socket aborted the entire solve session (exit code 1, zero retries) and
discarded all in-progress work. These socket/connection drops
(socket connection was closed unexpectedly, socket hang up, ECONNRESET,
connection reset, Connection error, fetch failed, network connection lost)
are now classified as retryable, so the session is retried with --resume
(context preserved) via the existing exponential-backoff path. Because
classifyRetryableError is the shared classifier, the fix covers the Claude,
Codex and Agent execution loops at once.

Related Pull Request: #1882


npm version