Preserve mobile Drafts when attachment cleanup fails #626

Merged
timmy merged 1 commits from timmy/625-draft-mutation-rollback into main 2026-08-12 05:56:47 +00:00
Owner

Closes #625

What changed

  • stage replacements without committing metadata until old attachment cleanup succeeds
  • restore staged/removed attachments when either cleanup or metadata persistence fails
  • keep discarded Drafts visible and resumable on cleanup failure
  • add behavioral fault-injection coverage for replacement, discard, and metadata write failures

Verification

  • pytest -q tests/test_unfiled_captures.py — 11 passed
  • pytest -q — 1277 passed
Closes #625 ## What changed - stage replacements without committing metadata until old attachment cleanup succeeds - restore staged/removed attachments when either cleanup or metadata persistence fails - keep discarded Drafts visible and resumable on cleanup failure - add behavioral fault-injection coverage for replacement, discard, and metadata write failures ## Verification - `pytest -q tests/test_unfiled_captures.py` — 11 passed - `pytest -q` — 1277 passed
timmy added 1 commit 2026-08-12 05:54:42 +00:00
fix: preserve Drafts when cleanup fails (Closes #625)
CI / lint (pull_request) Successful in 1m32s
CI / build-release (pull_request) Successful in 6s
CI / release-candidate (pull_request) Has been skipped
285fdff869
timmy merged commit 776ae70019 into main 2026-08-12 05:56:47 +00:00
Sign in to join this conversation.