Skip to content

Upstream intake 2026-11-17: 15 PRs, 0 commits - #1260

Merged
emmertex merged 20 commits into
mainfrom
upstream-intake-2026-11-17
Nov 19, 2026
Merged

emmertex merged 20 commits into
mainfrom
upstream-intake-2026-11-17

Conversation

@emmertex

@emmertex emmertex commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Round 10 of the upstream intake (runbook), against upstream main aa08a77060. It has two parts:

  1. The regular round: 26 candidates. These are the 23 PRs new since 2026-11-08, plus the carried candidates #4293, #4284 and #4321. 5 are ported.
  2. Early adoption: every one of the 176 PENDING/WATCH rows was read again to decide whether the fork should take it without waiting for upstream. 10 are ported. The rest wait on a named upstream change, and a new drift report watches them daily.

Adopted (15; one commit each, all hand-ported)

Upstream What Notes
#4293 A Lightroom catalog import takes captions from AgLibraryIPTC
#4390 Raws imported before Remove Hot Pixels are not counted as edited
#4391 Untouched Local raws from before Remove Hot Pixels are forgotten again
#4389 Those raws keep their camera preview
#4378 Face boxes on photos whose pixels were turned upright land on the faces adds a hostile-input test for AngleInfoRoll
#4216 A photo's first edit also lists an Import History step early
#3382 The library source total follows an edit instead of counting every photo again early; not measured on the fork (upstream: 94 % of a rating in an 844k library)
#3148 Paste Selected Settings pastes groups left out of the copy, and pasted crops are refit early; uses the fork's one existing crop-refit path
#3745 A merge started from an album joins that album early
#3877 A second copy no longer reports a false renderer failure early; two-copy smoke test not run
#4321 library.import reports what its folder walk skipped early
#4284 CLI calibration collects every raw format the profile fit reads early
#4064 Bundled Panasonic DMC-GM5 camera profile early; LOOK_VERSION 22→23
#3868 Compacts that name no lens get their built-in lens profile early; renders change only for those compacts with profile corrections on
#3318 A person's page offers only faces clearly more like them, with an opt-in "Ignore odd faces" setting early; strings in all 17 fork locales

Shared numbers taken: LOOK_VERSION 23 (by #4064). No process-version or catalog-format change, and no new dependencies.

Also in this PR

  • drift report: tools/upstream_intake.py drift lists the waiting rows whose upstream PR merged, closed, was approved, left draft or moved its head since review. gh output is now decoded as UTF-8, which fixes a cp1252 crash on Windows.
  • Ledger: 9 state changes recorded (merged, closed, or already in the fork) and 18 moved heads re-stamped.

Not adopted

Checks

  • Fast CI: cargo xtask ci --fast passed all 14 steps (Android skipped locally).
  • Tests:
    • cargo xtask sil: passed.
    • lcc-engine --lib: 2468 passed.
    • The touched crates (lcc-catalog, lcc-faces, lcc-lensdb, lcc-meta, lcc-app): passed.
    • lcc-cli: 35 passed with the Vulkan SDK validation layer disabled. With it on, the layer prints to stdout on this machine and breaks four e2e tests that parse stdout as JSON. That happens without these changes too, since nothing here touches the CLI's GPU path.
  • Flaky tests: a few timing-dependent tests failed under heavy parallel load during the port runs and passed alone or on rerun: device_sync Immich, tests_preview_prep, tests_face_models processor, and apple_photos shutdown.
  • App runs: none. The paste-dialog and second-window changes are covered by tests only.

Manual pages: library/import-sources, develop/history, develop/sync, develop/merge, develop/lens, library/people, plus the docs/manual and docs/*.md pages each commit names. Release notes are in docs/whats-new/2026-11-17-* and docs/changelog/unreleased/2026-11-17-*.

🤖 Generated with Claude Code

emmertex and others added 18 commits November 17, 2026 13:18
Adapted from upstream #4293 (issue #4043): the catalog import read captions
only from the XMP packet Lightroom caches, which often lacks them. The IPTC
table's caption now wins; a blank one, another image's row or no table keeps
the packet's. Test ported.

Manual: library/import-sources, docs/lightroom-catalog-import.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adapted from upstream #4390 (issue #4255): Remove Hot Pixels is on for raws
imported since the box exists and off for older ones, so it no longer
counts against the import defaults here. Test ported.

Manual: none, no user-visible change beyond the fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e forgotten again

Adapted from upstream #4391 (issue #4255): Remove Hot Pixels is on for raws
imported since the box exists and off for older ones, so it no longer
counts against the import defaults here. Test ported.

Manual: none, no user-visible change beyond the fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adapted from upstream #4389 (issue #4255): Remove Hot Pixels is on for raws
imported since the box exists and off for older ones, so it no longer
counts against the import defaults here. Test ported.

Manual: none, no user-visible change beyond the fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…land on the faces

Adapted from upstream #4378: when no quarter turn is stated in the Exif but
AppliedToDimensions has the other shape, the regions are turned onto the
pixels (direction from apple-fi:AngleInfoRoll, clockwise by default), at
import, on probe (always rebuilt from the header size so a stale Exif size
can't turn them) and on sidecar re-read. Tests ported, plus a hostile
AngleInfoRoll no-panic test.

Manual: docs/xmp-interop.md (no manual-site text describes box placement)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual: none, no user-visible change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…NDING/WATCH row

tools/upstream_intake.py gains `drift`: PENDING/WATCH rows whose upstream PR
merged, closed, was approved, left draft or moved its head since review. gh
output is now decoded as UTF-8 (cp1252 broke on Windows). The runbook names
it and the daily local monitor.

All 176 waiting rows were re-read for early adoption against aa08a77:
9 state changes (merged/closed/already in the fork) and 18 moved heads
are recorded; the early-adopt picks follow as their own commits.

Manual: none, no user-visible change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A photo's first edit (History empty) pushes an "Import" step holding the
settings before the edit, below the edit's own step, in the same batch: going
to it restores the photo as it started, and undo/redo takes away or brings back
both. history_groups already treats "Import" as a group of its own; the
history-groups tests' start offsets and the profile-browser headless test count
it.

Adapted from upstream #4216.
Manual: develop/history.mdx (Import step).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecounting

lcc_catalog::tally gains FilterTally (one filter's matching photos, followed
from Catalog::touched_since like AlbumTally) and Members::of_ids (bits or a set
from an unordered id list). Session::source_total keeps a SourceTotal (source
key incl. folder_subfolders, tally, clock minute) and after a small edit asks
only the touched photos; a view worked out whole for the source with nothing
narrowing it hands its pass over as the total. Missing Photos stays None; a
held view only bypasses the view's length when it asks something (Picks, smart
album). Rules that read the clock, Recently Added, large edits and album/stack
ops still count every photo. Upstream measured 94% of a rating/undo in an 844k
library spent here; unmeasured on the fork.

Adapted from upstream #3382.
Manual: none, no user-visible change (performance only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… copy; pasted crops refit

Adapted from upstream #3148 (issue #3056).

- Copy keeps the copied photo's whole settings (portable) plus its oriented frame; a plain Paste
  applies what Copy ticked, Paste Selected Settings any group (the old intersect with the copy
  choice made ticking Crop/Remove/Masks paste nothing). The dialog no longer greys out groups the
  copy left out.
- Paste, Paste from Previous and Sync share one crop refit, the fork's existing
  sync_same::synced_crop (already used by Sync and Auto Sync), with the target frame taken as the
  pasted orientation. Upstream's CropGeometry::refit/RefitShape is not taken: it would be a second
  refit path with different semantics (keeps a 3:2 band on a portrait) from the fork's.
  From it, an "Original" lock now takes the target's own shape (Crop::original_aspect).
- Mask links, vignetting calibration and the upright recipe keep going through the same paste.
- Engine tests ported and adapted to the fork's refit.

Manual: develop/sync.mdx (Copy, paste and sync)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adapted from upstream #3745 (issue #3741). MergeJob carries the regular album the library showed
when the merge was planned; finish_merge adds the result through album.addPhotos when the album
still exists and is not smart or a folder (also when an earlier identical result is reused).

Manual: develop/merge.md (Photo merge)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…erer failure

Adapted from upstream #3877

The copy that arms window-init.marker holds an OS lock on it (File::try_lock) until its
window is up; take_failed treats a locked marker as a start in flight, empties (never
deletes) the marker, falls back to a read-only open, and reads at most 256 bytes;
relaunch_after_failure releases the lock first. Fork's renderer order and
window-renderer-2 unchanged. Upstream tests ported plus a hostile-marker test.

Manual: none, no user-visible change beyond a false notice no longer appearing (docs/gpu-pipeline.md updated)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
library.import now returns skipped: {unreadable, unsupported}, as
library.importPreview does, so a script can tell a skipped file from a
missing one. ImportJob::prepare walks with expand_report and carries the
counts through Prepared into ImportReport; a file named on its own is
still tried and never counted.

Adapted from upstream #4321 (the fork keeps import in one module and the
tests in tests_import.rs).

Manual: docs/manual/import-export.md (command-line section)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fit reads

A shared camera_profiles::CALIBRATION_EXTENSIONS lists the raw formats
whose camera JPEG the profile fit reads (camera_preview::file_local_look):
ARW, NEF/NRW, RW2/RWL, RAF, CR3/CR2, PEF, SRW, ORF, CRW, MRW, ERF. The
CLI's calibrate walk uses it, so RWL, CRW and MRW are no longer passed
over; DNG stays out. calibrate-lightroom keeps its own list (it fits
Lightroom renders, not camera JPEGs, and reads DNG on purpose).

Adapted from upstream #4284. The CLI test lives in a module of its own:
the fork's raw_files_tests is unix-only (symlinks).

Manual: docs/manual/troubleshooting.md (calibrate formats)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
assets/camera-profiles/DMC-GM5.json is taken byte for byte from upstream
(MIT OR Apache-2.0; an aggregate fit by the calibrate command to 1,520
GM5 RW2s and their camera JPEGs, photos supplied by @djlieu; no image
content, no Adobe data), registered in BUNDLED and credited in
assets/ATTRIBUTION.md. LOOK_VERSION 22 -> 23 so cached GM5 looks are
refitted.

Adapted from upstream #4064 (upstream bumped its own look version to 14;
the fork's next number is 23). Known upstream limits noted in the
release note: monochrome photo styles render colour (#4062), oranges
lean pink (#4063).

Manual: docs/manual/agents-and-status.md (built-in profiles)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fixed-lens camera's raw that names no lens and records no lens
specification (PowerShot G7 X CR2, RX100 II) now gets its camera's
built-in lens from the lens database, found by the camera's own mount.
find_built_in_lens now refuses a body (mount name starting with a capital,
lensfun's convention for interchangeable mounts). The Optics panel status
reports the found profile instead of "No lens named" for such photos.

Render change: only for those compacts with profile corrections on, where
a profile now applies.

Left out: upstream's cmd/lens_refresh.rs part; the fork has no library-wide
missing-profile refresh (lens.db.refresh re-reads the given ids).

Adapted from upstream #3868
Manual: develop/lens.mdx

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A person's suggested faces now leave out faces that score within
DEFAULT_MARGIN of (or above) anyone else already named, checked best first
for up to RIVAL_CHECKS times the page size. New Settings > Faces > Matching
option "Ignore a person's odd faces (from behind, misnamed)" (faces.matching
skipOdd, off by default, stored in the face models' settings.json) drops a
person's faces far from their average face (matching::typical) from both
comparisons. faces.matching now validates every value before saving, so a
refused call changes nothing.

#3284's topFaces combo is not added to Settings (the fork never had it);
only the new checkbox is. Fork strings in all 17 fork locales.

Adapted from upstream #3318
Manual: library/people.mdx

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual: none, no user-visible change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex emmertex changed the title Upstream intake 2026-11-17: 5 PRs, 0 commits Upstream intake 2026-11-17: 15 PRs, 0 commits Nov 17, 2026
Conflicts: develop.copy keeps the whole settings (upstream #3148) and the
per-mask choice (#1268); MergeJob carries both the pixel-shift plan and the
start album (#3745); LOOK_VERSION 29 for the GM5 profile after main's 28;
tests, merge manual page and parity rows keep both sides.

Manual: develop/merge (both paragraphs kept)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit 9ab12a5 into main Nov 19, 2026
7 checks passed
@emmertex
emmertex deleted the upstream-intake-2026-11-17 branch November 19, 2026 12:44
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