Files
nvrlandClaude Opus 5.5 71a8b0b60c fix(sdk): do not repeat a write that timed out
A timeout, or a 504 from a gateway, can come after the server acted on a
request. Repeating a write then met the first attempt's result: a folder
creation whose answer was slow failed with AlreadyExists for the folder
the first attempt made. Writes are now retried only when they were not
acted on (a failed connection, 408, 429, 502, 503). Block uploads, which
can be repeated safely, get their own Replay::Idempotent and keep retrying
on a timeout; reads are unchanged.

Found with the self-hosted server's stall fault.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 01:05:24 +01:00
..