Skip to content

2.1 follow-ups: dedupe fan-out guard, companion fixes, German gaps, sweep fixes - #312

Merged
Nishith merged 10 commits into
mainfrom
fix/release-2.1-followups
Dec 1, 2026
Merged

Nishith merged 10 commits into
mainfrom
fix/release-2.1-followups

Conversation

@Nishith

@Nishith Nishith commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-ups and bug-sweep fixes for the 2.1 release.

  • Dedupe (INV-14): pair fan-out never adds a RAW or Live Photo partner that sits in a group not yet reviewed; its own group decides once reviewed. Applies to the reviewed plan, the free removal batch and the lane summaries. One sentence added to INV-14 in AGENTS.md.
  • Dedupe: Undo history is discarded when a scan starts, on reset and after a commit, so a stale Undo cannot rewrite a restored review.
  • Dedupe review: panes show the decision the plan will make, so a protected edited variant no longer reads "Suggested for removal" (edit preservation B-3).
  • Companions: appended-form temp files (…jpg.xmp.<uuid>.tmp) are cleaned up; Reorganize moves photo.jpg.xmp with its photo (edit preservation B-2, items 1–2). Owner lookup is indexed per folder instead of scanning the folder for each sidecar.
  • Run: Not Now on a refused copy brings the finished preview back.
  • Unlock sheet: Return takes the free action when one is offered. The Organize Folder Shortcut uses the stored folder layout.
  • German: alert, safety-card and History text are localized; decimals and counts follow the locale; four singular forms fixed.
  • Docs: DECISIONS.md records the sweep decisions; the edit-preservation BLOCKED.md records what is still open (B-2 item 3, skipping a companion whose owner failed verification, is not built).

Verification

Run locally on the branch:

  • script/run_swift_test_suites.sh: exit 0, 2,783 passed, 0 failed, 9 skipped
  • script/swift_meaningful_coverage.sh: exit 0, 96.14%
  • All 14 script/check_*.sh guards against origin/main: exit 0
  • Xcode Debug build: BUILD SUCCEEDED
  • script/check_german_localization.py: exit 0, zero missing German keys
  • git diff --check: exit 0

Not done: nothing was checked in the running app, and the Xcode UI-test suite was not run.

Safety Checklist

  • Source files remain read-only.
  • Destination collisions cannot overwrite existing files.
  • Destructive operations are receipt-backed and reversible where applicable.
  • User-facing errors remain plain and nontechnical.
  • Any new ui/Xcode/UITests/ file is registered in project.pbxproj (none added).
  • Tests or documented manual checks cover the changed behavior.

🤖 Generated with Claude Code

Nishith and others added 9 commits November 29, 2026 14:12
…with their photo

Edit preservation B-2, items 1 and 2.

- TransferExecutor's temp-file pattern now accepts one second extension
  before the UUID, so a crash mid-copy of `…_007.jpg.xmp` no longer
  leaves `…_007.jpg.xmp.<UUID>.tmp` behind. The UUID and .tmp
  requirements are unchanged.
- ReorganizeExecutor.parseFileBucket buckets `<managed name>.<media
  ext>.xmp|.aae` with its photo instead of counting it unrecognized.
  The move goes through the existing receipted, no-overwrite path.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Edit preservation B-3. The list, detail and Quick Review panes fell
back to Delete for any member with no explicit decision, so a
protected edited variant (INV-31) could read "Suggested for removal"
while the plan kept it. They now read one shared
DedupeDecisions.effectiveDecision, the rule keepersForCluster already
used. In a group the planner will not auto-select, members with no
decision now show Keep, which is what the plan does. What reaches the
Trash is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…layout

- When the unlock sheet offers a free copy or free removal, that button
  is the Return-key default. Buy is the default only when nothing free
  is offered. UnlockSheetModel.defaultAction decides; the view reads it.
- The Organize Folder Shortcut hard-coded Year/Month/Day. It now reads
  the folder layout from PreferencesStore, so a Shortcut run and the app
  write the same layout into a library.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… and grouped counts

Text that bypassed the catalog and so showed English in German:
- "Chronoframe Needs Attention" alert messages set by the Setup, Run,
  History and Source Watch coordinators are looked up when set.
- The setup safety card and the History reconnect body are %@ templates
  filled after lookup; the folder name is shown verbatim, not as Markdown.

Formatting:
- Deduplicate match reasons use the locale's decimal separator; English
  output is unchanged.
- Deduplicate and contact-sheet counts use grouping separators.

Singular forms for a count of 1: "1 was skipped", "Unlock to Remove 1
Duplicate", the contact-sheet empty message, and the Library shape
accessibility label.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… discarded

INV-14. The commit plan is built from reviewed groups only, so a RAW or
Live Photo partner that belongs to a group the person has not reviewed
had no decision in the plan and was added by pair fan-out, while its own
group still showed it as kept. The planner takes fanoutProtectedPaths
and skips those partners; the store passes the members of unreviewed
groups for the reviewed plan, the free removal batch and the lane
summaries. Planning over all groups is unchanged, and the change only
ever removes items from a plan.

Undo closures captured one scan's decisions and group IDs but survived
Scan Again, so an Undo could wipe a restored review and delete its
saved file. The store now discards its own undo actions when a scan
starts, on reset, and when a commit completes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…idecar

CompanionResolver.resolve compared every sidecar with every media file
in its folder, so a flat folder of N photos and N sidecars cost N² name
comparisons on every preview. Each folder's media is now indexed once
by stem, full name and IMG_ digits. Results are unchanged: a seeded
equivalence test compares the index with the previous per-pair logic,
and 20,000 photos with 20,000 sidecars resolve in about 0.2 s.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A copy request clears the session before the engine can refuse it, so
closing the free-month or unlock sheet left the Run page without the
preview the person had just read. The store now keeps the finished
preview when a copy is requested from it and restores it if the
refusal is dismissed. A run that starts, a retry and any new request
drop it. The destination lease is still released before the sheet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…-up status

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T00:04:36.593010Z 9ad795e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Nishith
Nishith merged commit dcc36fb into main Dec 1, 2026
24 checks passed
@Nishith
Nishith deleted the fix/release-2.1-followups branch December 1, 2026 15:33
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