Skip to content

fix(apple-photos): review-sweep fixes from PR #91 bot analysis#107

Merged
TechNickAI merged 1 commit into
mainfrom
fix/apple-photos-review-sweep
Apr 28, 2026
Merged

fix(apple-photos): review-sweep fixes from PR #91 bot analysis#107
TechNickAI merged 1 commit into
mainfrom
fix/apple-photos-review-sweep

Conversation

@TechNickAI
Copy link
Copy Markdown
Owner

Summary

Follow-up to #91 (feat: add apple-photos skill), addressing real bugs caught by Cursor and Codex review bots.

  • --edited on export silently excluded non-edited photosQueryOptions(edited=True) was filtering at the DB level before cmd_export's "prefer edited path" logic ran, so non-edited photos were never seen. Fixed by passing skip_edited_filter=True to build_query_options from cmd_export.
  • --movies / --newest-first export flags were un-toggleable no-opsaction="store_true" + default=True makes the value permanently True with no opt-out. Switched to BooleanOptionalAction to enable --no-movies / --no-newest-first.

One Codex suggestion was declined (P2 — "HAS_OSXPHOTOS check is wrong"): the bot misread the code ordering. find_spec runs on line 21, before the mock injection on lines 26–28. Replied with explanation and 👎 reaction.

Test plan

  • apple-photos export /dest --no-movies now excludes movies (previously impossible)
  • apple-photos export /dest --edited now exports all matching photos, using edited version where available (previously silently dropped non-edited photos)
  • apple-photos export /dest unchanged — movies on, newest first, all photos

🤖 Generated with Claude Code

- --edited on export now queries all matching photos and prefers the
  edited file path at copy time (was incorrectly filtering to only-edited
  photos at the DB level, silently excluding non-edited photos)
- --movies and --newest-first on export now use BooleanOptionalAction so
  users can pass --no-movies / --no-newest-first to opt out (was store_true
  + default=True, making them permanent no-ops with no opt-out path)
- Bump apple-photos skill to 0.1.1

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@TechNickAI TechNickAI added review-sweep Follow-up fixes from PR review comments Hex Created by Hex labels Apr 22, 2026
@TechNickAI TechNickAI merged commit 6f75c38 into main Apr 28, 2026
6 checks passed
@TechNickAI TechNickAI deleted the fix/apple-photos-review-sweep branch April 28, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hex Created by Hex review-sweep Follow-up fixes from PR review comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant