Files
photoreport/apps/api/test
paula-alves a9b7007d5d
ci / rust (pull_request) Successful in 7m10s
ci / typescript (pull_request) Successful in 12m3s
fix(delivery): idempotent retry when item leaves FAILED between render and click (BIT-33418)
Race condition: between the desktop rendering a FAILED delivery row and the
user clicking "Repetir", the autopilot/queue worker can requeue, retry, or
retract the item. The retry endpoint's updateMany (where status=FAILED)
matched zero rows and threw notFound("failed_item_not_found") -> 404, and
the frontend promise had no .catch -> unhandledrejection -> error loop.

API: when the item no longer matches FAILED, fetch it; if it exists return
its current state (200, idempotent), only 404 when the row is gone.
Frontend: add a rejection handler that reloads the list so a stale FAILED
row refreshes instead of becoming an unhandled rejection.

Paperclip-BIT-33418
2026-11-26 22:19:13 +00:00
..