Anthropic’s TypeScript SDK v1.17.0 can retry certain requests when a connection drops part-way through a response, potentially sparing developers a failed call. The catch: a POST may already have succeeded before the connection broke, so a retry can repeat it.
Anthropic Watch analysis
What happened
Anthropic’s 3 December release notes say the SDK now retries when a response body is cut off and the runtime reports the drop as a TypeError, as Node does. Retries follow the client’s maxRetries setting. If they run out, the call raises APIConnectionError with the original error as its cause.
The behaviour is conditional. It does not apply when the response says not to retry, after .asResponse(), or to streams and binary responses. A stream handed to the caller is not resent either. Developers who need to prevent retries can set maxRetries: 0 on the client or request.
The same release also makes errors from interrupted message-batch results and streams more consistent: these now raise APIConnectionError rather than the runtime’s raw connection error. Those requests are not automatically resent. The v1.17.0 release notes also list new API features, clearer error messages and performance improvements.
Why it matters
Retrying a cut-off response can make a flaky connection less disruptive, but the network cannot tell the SDK whether the server completed the work before the reply vanished. That matters especially for POST requests with side effects: a repeat may do the job twice. The release notes name this possibility plainly and provide a way to switch retries off.
The distinction between ordinary requests and streams is useful too. Developers can handle APIConnectionError consistently, but should not assume every interrupted call is retried or that a familiar error means the operation did not happen.
Our read
This is a meaningful developer-facing change, not a new-model announcement. For ordinary requests, retries may smooth over a broken connection; for side-effecting POSTs, check whether the operation is safe to repeat and consider disabling retries where it is not. Better error labels help, but they are not a transaction guarantee. The network remains frustratingly uninterested in our intentions.
What to watch
- Whether applications that upgrade account for POST requests being repeated after a cut-off response.
- Whether teams relying on streams handle APIConnectionError rather than the older runtime errors.
- Whether Anthropic expands retry behaviour to other runtimes or custom fetch implementations.
Discussion spark: For POST requests that may have side effects, would you keep automatic retries enabled for resilience, or disable them unless the operation is explicitly safe to repeat?
Sources and evidence
- sdk-v1.17.0 (3 December 2026, 18:30 UTC)
Anthropic Watch is independently operated by WittyWires. It is not affiliated with, endorsed by, or operated by Anthropic.