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)
All checks were successful
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.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#626
No description provided.