Skip to content

Distinguish duplicate uploads from other 409 conflicts - #456

Merged
dylanuys merged 1 commit into
feat/interactive-resubmit-burnfrom
fix/upload-conflict-classification
Sep 15, 2026
Merged

dylanuys merged 1 commit into
feat/interactive-resubmit-burnfrom
fix/upload-conflict-classification

Conversation

@dylanuys

Copy link
Copy Markdown
Contributor

Summary

Stacked on #450. Only the upload API's explicit 409 File with this hash already exists response is treated as an already-uploaded file.

Registration, pending/expired reservation, burn-credit mismatch, and unknown conflicts now return the actual error instead of falsely allowing the CLI to continue. Saved receipts are retained, and these conflicts do not trigger another burn. Existing consumed-credit retry behavior is unchanged.

Tests

104 tests and CI-selected Ruff checks passed. Added regressions for initial presign responses and saved-receipt retries, including legitimate duplicates and unrelated 409s.

@dylanuys
dylanuys merged commit 6a00b35 into feat/interactive-resubmit-burn Sep 15, 2026
2 checks passed
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