Repository navigation
Conversation
…ching Prefer real library entries when importing browsed copies and track promoted hashes across scan and background-import batches. Add synthetic regressions for permanent deletion, restart, trash restoration, and duplicate promotion. Draft validation on the previous base: 59 import tests passed; all 8 cargo xtask ci steps passed with PR storytold#1052 in a temporary validation worktree. Rebased onto main 68c9240, which includes storytold#1052; validation of this base is recorded in the PR. Co-authored-by: Codex <noreply@openai.com>
effb4b1 to
30f2e83
Compare
|
Hi @Clearfall, thanks for this fix. I ran into the same bug from the other side: a folder menu I'm adding (#2961, Add to My Photos… on a Local folder) opens the Import review, and on current This branch no longer merges with |
|
The port is open as #2971, with you as |
…nger blocks the library's own file The scan listed a file that was only browsed in Local as a duplicate by path, so the Import review showed it "In library" and out of reach, and a browsed copy under another path counted as library content. Only library records now count as existing content: a browsed file is offered (still naming its record) and importing it promotes that record with its edits, a library photo with the same content is matched before a browsed copy is promoted, and promoted content counts across scan and background import batches. The review offers such a file only when adding in place, since copy and move would add it where it is, and says that keywords and presets apply to new files only. Ports the approach and the engine tests of storytold#1433 to current main. Co-authored-by: Clearfall <237151555+Clearfall@users.noreply.github.com>
…nger blocks the library's own file The scan listed a file that was only browsed in Local as a duplicate by path, so the Import review showed it "In library" and out of reach, and a browsed copy under another path counted as library content. Only library records now count as existing content: a browsed file is offered (still naming its record) and importing it promotes that record with its edits, a library photo with the same content is matched before a browsed copy is promoted, and promoted content counts across scan and background import batches. The review offers such a file only when adding in place, since copy and move would add it where it is, and says that keywords and presets apply to new files only. Ports the approach and the engine tests of storytold#1433 to current main. Co-authored-by: Clearfall <237151555+Clearfall@users.noreply.github.com>
…nger blocks the library's own file The scan listed a file that was only browsed in Local as a duplicate by path, so the Import review showed it "In library" and out of reach, and a browsed copy under another path counted as library content. Only library records now count as existing content: a browsed file is offered (still naming its record) and importing it promotes that record with its edits, a library photo with the same content is matched before a browsed copy is promoted, and promoted content counts across scan and background import batches. The review offers such a file only when adding in place, since copy and move would add it where it is, and says that keywords and presets apply to new files only. Ports the approach and the engine tests of storytold#1433 to current main. Co-authored-by: Clearfall <237151555+Clearfall@users.noreply.github.com>
…nger blocks the library's own file The scan listed a file that was only browsed in Local as a duplicate by path, so the Import review showed it "In library" and out of reach, and a browsed copy under another path counted as library content. Only library records now count as existing content: a browsed file is offered (still naming its record) and importing it promotes that record with its edits, a library photo with the same content is matched before a browsed copy is promoted, and promoted content counts across scan and background import batches. The review offers such a file only when adding in place, since copy and move would add it where it is, and says that keywords and presets apply to new files only. Ports the approach and the engine tests of storytold#1433 to current main. Co-authored-by: Clearfall <237151555+Clearfall@users.noreply.github.com>
…nger blocks the library's own file The scan listed a file that was only browsed in Local as a duplicate by path, so the Import review showed it "In library" and out of reach, and a browsed copy under another path counted as library content. Only library records now count as existing content: a browsed file is offered (still naming its record) and importing it promotes that record with its edits, a library photo with the same content is matched before a browsed copy is promoted, and promoted content counts across scan and background import batches. The review offers such a file only when adding in place, since copy and move would add it where it is, and says that keywords and presets apply to new files only. Ports the approach and the engine tests of storytold#1433 to current main. Co-authored-by: Clearfall <237151555+Clearfall@users.noreply.github.com>
|
Thank you @Clearfall. This fix landed on |
Problem and change
Browsing a byte-identical copy in Local could make an import incorrectly report “already in the library”, even after the library photo had been permanently deleted and the library reopened. Conversely, importing a browsed copy could promote it before checking for an existing library photo with the same content.
Exclude Local-only records from the library content index, prefer the actual library photo (including the existing trash restore/skip policy), and register a promoted hash immediately so later files and worker batches are deduplicated. Browsed records and original files are retained.
Validation
cargo xtask cisteps passed in a separate worktree with Windows: case-insensitive sidecar/rename fixes; Windows test and toolchain fixes #1052 temporarily applied.lightcraft-rawtests withSTATUS_HEAP_CORRUPTION(earlier attempts also encounteredSTATUS_ILLEGAL_INSTRUCTIONandSTATUS_ACCESS_VIOLATION). These are compiler-process failures, not failing test assertions. Full workspace tests and the subsequent CI gates, including wasm, remain unverified on this base; there is no green full-CI result. No validation process was still running when checked on 2026-10-14. These failures are distinct from the now-merged Windows: case-insensitive sidecar/rename fixes; Windows test and toolchain fixes #1052 fixes.AI-assisted contribution, reviewed and tested for @Clearfall. Kept as a draft while final validation is incomplete.
Publication checkpoint (2026-10-14)
Upstream main advanced to a4b53b2. This branch remains based on 68c9240, and GitHub reports conflicts in
crates/engine/src/import.rsanddocs/parity-checklist.md. The upstream import indexing refactor still includes Local-only records in content matching; it does not supersede this bug fix. Rebase/conflict resolution and current-main validation remain required before leaving draft status. Separate drafts: #1713 (Lens Blur) and #1714 (conventional NR comparison).