[Bug]: When changing between dupe groups, active image pointer doesn't reset #99
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
App version
0.1.33
Platform
Both
Steps to reproduce
Expected behavior
The first image of the new set is selected as the active image in the viewer scene with the carousel and filmstrip updated accordingly
Actual behavior
The active image in the scene remains from the previously selected set. The carousel doesn't update with new images. The filmstrip has the right most image in the newly chosen set highlighted.
Additional context
No response
Same root cause as #93:
_on_dupe_keep_best/_on_dupe_delete_groupadvanced the active duplicate group without resyncing the viewer (the prev/next/tag-filter-changed handlers already did this correctly).Investigating the repro also surfaced a related latent crash: when the active group switches to one with fewer images while the viewer is parked on a higher index,
_apply_dupe_group_filter's internal viewer resync (resync_after_scan→_pick_post_prune_index) could index past the end of its prior-path list and raiseIndexError, which aborted the call chain before the correct resync ever ran — this is the most direct explanation for the stale image / filmstrip-clamped-to-last-image symptom described here. Hardened with a defensive clamp.Fix implemented on branch
0.1.35/issue-99-dupe-viewer-resync(commit87289cb), with a regression test reproducing the larger→smaller group transition from this report. Awaiting PR tomain.Fixed on branch
0.1.35/issue-99-dupe-viewer-resync(now rebased onto currentmain, including the CI fix from #106/#107 so this branch gets a real dev build). VERSION bumped to 0.1.36 and CHANGELOG updated. Opening a PR tomain.