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
## 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.
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.
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).
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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
pr.filemarksremembered them: soft-crop bookkeeping ran beforeftp_write_xmpand failures were swallowed.Test plan
cargo test write_xmp_at_embeds_pickxmpDM:pick=1for LightroomOriginal: BIT-262 / PR #263 follow-up.
Picks were in
pr.filemarks(182 PICK) butftp_write_xmpnever 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 withphotoreport: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).
Follow-up: after restart the local FTP was off (
autoStartwas 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_originalre-hashed every file and stalled beforelocal_original_changed. Commit9f5532ctries the changed path first.auto-approve: CI success on
9f5532c737(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
9f5532c737(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
9f5532c737(gitea_auto_approve_open_prs_once.py)