What
When Claude Code creates an artifact and the server answers "try again after a wait", it now waits and retries several times, up to a limit, instead of only once. The handling of each response has changed:
- Conflict (409) and too-many-requests (429) responses are still retried.
- A service-unavailable (503) response is now retried too, but only when the request carries an idempotency key, a label that lets the server recognise a repeat of the same request, and the response matches a known message.
- A 409 whose stated reason says an earlier attempt is still creating the artifact is now recognised, not only one marked that way in its headers.
Claude Code also now counts how many retry waits happened.
Why
Artifact creation should fail less often when the service in between is under pressure, without creating the same artifact twice.