Files
supabase/apps
Claude 96a2aad7f2 fix(storage): drain the whole history when purging an archived file
The version list endpoint caps a page at 1000 rows. Purging an archived file
deleted that one page plus the marker and called it done, so a longer history
kept its older versions — and with the marker gone one of them became current
again, putting the "permanently deleted" file back in the bucket. It now lists
and deletes in rounds until nothing is left, the way the live object purge does.

It also deletes versions by id, the current one included, so a restore between
opening the dialog and confirming would hand it a live file to destroy. It now
re-reads the marker immediately before the first delete and aborts if the path
is no longer archived. That narrows the window rather than closing it; only
Storage can make the check and the delete one operation.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3euXsz25sTybsGTcxCFfn
2026-10-08 18:37:05 +02:00
..
2026-10-05 07:43:35 -05:00