Skip to content

NAT-581: Retain standardized files across upload restoration - #158

Draft
eugene-mux wants to merge 2 commits into
mainfrom
em/nat-581-standardized-resume
Draft

eugene-mux wants to merge 2 commits into
mainfrom
em/nat-581-standardized-resume

Conversation

@eugene-mux

@eugene-mux eugene-mux commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix the missing standardized-file failure after force quit and relaunch. The patch addresses purgeable temporary storage, deletion after a recoverable transport failure, and saved SDK paths from a previous app container. There are no public SDK API changes.

Changes

  • Retain standardized payloads in Application Support, excluded from backup; preserve uploads.json and move surviving legacy payloads without re-encoding or changing their checkpoint.
  • Transfer output ownership at transport commit. Persistence owns deletion after commit and writes record removal before deleting bytes.
  • Reclaim old, unreferenced generated files on cache open using the real process start time; cleanup is best-effort and handles symlinked paths.
  • Report a missing saved file using the existing .file kind with explicit new-upload-URL guidance. Wire the example's startup delegate/restore/start flow and durable picker input.

Validation

  • 194 tests passed on macOS and iOS Simulator. 33 restore/persistence Thread Sanitizer tests passed.
  • Physical-device example build, version consistency, and diff checks passed.
  • Physical-device acceptance of this simplified commit remains pending; earlier full-recovery device results do not count.

Deferred

The broader implementation is preserved on em/nat-581-recovery-full. Deferred work: error/API additions; transport offsets, Range, retry/backoff and final-chunk handling; retry/restart/cancel and public pause-state semantics; recovery during conversion; and H264 SPS parsing. None are included in this patch. No version bump is included.

NAT-581

@eugene-mux eugene-mux changed the title NAT-581: Preserve standardized payloads for resumable uploads NAT-581: Complete resumable upload recovery flow Nov 4, 2026
@eugene-mux
eugene-mux force-pushed the em/nat-581-standardized-resume branch from 425fc6f to 901eeaf Compare November 4, 2026 22:05
@eugene-mux eugene-mux changed the title NAT-581: Complete resumable upload recovery flow NAT-581: Retain standardized files across upload restoration Nov 4, 2026

This branch has not been deployed

No deployments
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