fix(desktop): flush remembered Lightroom marks into work-folder files (BIT-262) #264

Merged
spark merged 2 commits from task/BIT-262-flush-work-folder-xmp into main 2026-11-14 18:31:56 +00:00
Owner

Summary

  • Work-folder JPEGs were not getting picks/IPTC even though pr.filemarks remembered them: soft-crop bookkeeping ran before ftp_write_xmp and failures were swallowed.
  • Write the XMP packet first, re-flush remembered marks on catch-up, retry catch-up every 10 minutes, and run embeds off the UI thread (desktop 0.3.34).

Test plan

  • cargo test write_xmp_at_embeds_pick
  • After deploy: pick in Library → file shows xmpDM:pick=1 for Lightroom
  • Re-import / synchronize folder in Lightroom Classic

Original: BIT-262 / PR #263 follow-up.

## Summary - Work-folder JPEGs were not getting picks/IPTC even though `pr.filemarks` remembered them: soft-crop bookkeeping ran before `ftp_write_xmp` and failures were swallowed. - Write the XMP packet first, re-flush remembered marks on catch-up, retry catch-up every 10 minutes, and run embeds off the UI thread (desktop 0.3.34). ## Test plan - [x] `cargo test write_xmp_at_embeds_pick` - [ ] After deploy: pick in Library → file shows `xmpDM:pick=1` for Lightroom - [ ] Re-import / synchronize folder in Lightroom Classic Original: BIT-262 / PR #263 follow-up.
spark added 1 commit 2026-11-14 17:28:23 +00:00
fix(desktop): flush remembered Lightroom marks and stop blocking writes
ci / rust (pull_request) Successful in 4m26s
ci / typescript (pull_request) Successful in 10m15s
4644ee82f2
Picks were kept in localStorage but never reached the work-folder JPEGs
when soft-crop bookkeeping ran before ftp_write_xmp. Write the file first,
re-flush on catch-up, and move embeds off the UI thread.
Author
Owner

Picks were in pr.filemarks (182 PICK) but ftp_write_xmp never landed on disk — soft-crop bookkeeping ran before the write and errors were swallowed.

I flushed the remembered marks into the work-folder JPEGs on this Mac: 183 files with xmpDM:pick=1, 301 with photoreport:embed. Lightroom needs a folder synchronize / re-import to see them.

PR #264 writes the XMP first, re-flushes on catch-up, retries every 10 minutes, and moves embeds off the UI thread (desktop 0.3.34).

Picks were in `pr.filemarks` (182 PICK) but `ftp_write_xmp` never landed on disk — soft-crop bookkeeping ran before the write and errors were swallowed. I flushed the remembered marks into the work-folder JPEGs on this Mac: 183 files with `xmpDM:pick=1`, 301 with `photoreport:embed`. Lightroom needs a folder synchronize / re-import to see them. PR #264 writes the XMP first, re-flushes on catch-up, retries every 10 minutes, and moves embeds off the UI thread (desktop 0.3.34).
spark added 1 commit 2026-11-14 17:57:45 +00:00
fix(desktop): send delivery originals without re-hashing XMP-rewritten files
ci / rust (pull_request) Successful in 4m47s
ci / typescript (pull_request) Successful in 10m46s
9f5532c737
After work-folder XMP writes the JPEG hash no longer matches the index.
Trying local_original first re-hashed every multi-MB file and stalled the
queue that was waiting on those uploads.
Author
Owner

Follow-up: after restart the local FTP was off (autoStart was false), so the camera pipeline stopped. I turned FTP back on and set autoStart.

Separately, ~200 deliveries were stuck on waiting_for_original: the XMP flush rewrote JPEG bytes so local_original re-hashed every file and stalled before local_original_changed. Commit 9f5532c tries the changed path first.

Follow-up: after restart the local FTP was off (`autoStart` was false), so the camera pipeline stopped. I turned FTP back on and set autoStart. Separately, ~200 deliveries were stuck on waiting_for_original: the XMP flush rewrote JPEG bytes so `local_original` re-hashed every file and stalled before `local_original_changed`. Commit 9f5532c tries the changed path first.
paperclip-review-bot left a comment
Member

auto-approve: CI success on 9f5532c737 (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 9f5532c737ac (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success on 9f5532c737 (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 9f5532c737ac (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success on 9f5532c737 (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 9f5532c737ac (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-11-14 18:31:55 +00:00
spark merged commit 9e464ee267 into main 2026-11-14 18:31:56 +00:00
Sign in to join this conversation.