Skip to content

Fix progress preview gallery selection - #9217

Merged
lstein merged 3 commits into
invoke-ai:mainfrom
JPPhoto:progress-preview-gallery-selection
Jun 6, 2026
Merged

Fix progress preview gallery selection#9217
lstein merged 3 commits into
invoke-ai:mainfrom
JPPhoto:progress-preview-gallery-selection

Conversation

@JPPhoto

@JPPhoto JPPhoto commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes image viewer progress preview behavior when selecting gallery images during generation. Previously, selecting a gallery image during an active progress preview cleared the preview immediately, leaving the selected image visible until the next progress update or completion.

When a progress preview is visible, selecting a gallery image now shows that selected image for 2 seconds before returning to the active progress preview. The preview continues updating behind that temporary reveal. The Info button now matches the visible state: it is enabled during the 2-second selected-image reveal and disabled again when the progress overlay returns.

Also fixes a race where a stale completion handoff could clear a newer generation's progress preview.

Related Issues / Discussions

QA Instructions

Manual behavior to verify:

  1. Start a generation with Display Progress Images enabled.
  2. While the progress preview is visible, select a different gallery image.
  3. Confirm the selected image is shown for 2 seconds, then the progress preview returns.
  4. Confirm new progress updates continue and the latest preview is shown after the reveal.
  5. Confirm the Info button is enabled during the 2-second reveal and disabled while the progress overlay is visible.

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions Bot added the frontend PRs that change frontend files label May 20, 2026
@JPPhoto
JPPhoto requested a review from joshistoast May 20, 2026 13:53
@JPPhoto
JPPhoto force-pushed the progress-preview-gallery-selection branch from 8c4d37b to 198b69b Compare May 22, 2026 03:37
@lstein lstein added the 6.13.5 Library Updates label May 25, 2026
@lstein lstein moved this to 6.13.5 LIBRARY UPDATES in Invoke - Community Roadmap May 25, 2026
@JPPhoto
JPPhoto force-pushed the progress-preview-gallery-selection branch 3 times, most recently from 989e932 to 73385ce Compare May 27, 2026 21:23
@JPPhoto
JPPhoto force-pushed the progress-preview-gallery-selection branch from 73385ce to cb5a4d3 Compare May 29, 2026 11:03

@lstein lstein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised. Code check clean.

@lstein
lstein enabled auto-merge (squash) June 6, 2026 20:59
@lstein
lstein disabled auto-merge June 6, 2026 20:59
The reveal effect's own cleanup already clears selectedImageRevealTimeoutId
on unmount; the unmount-only effect just needs to reset the atom.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lstein
lstein enabled auto-merge (squash) June 6, 2026 21:02
@lstein
lstein merged commit 134eeb6 into invoke-ai:main Jun 6, 2026
14 checks passed
@JPPhoto
JPPhoto deleted the progress-preview-gallery-selection branch June 7, 2026 14:52
dunkeroni pushed a commit to dunkeroni/InvokeAI that referenced this pull request Jun 29, 2026
* Fix progress preview gallery selection

* Remove redundant clearTimeout in unmount cleanup effect

The reveal effect's own cleanup already clears selectedImageRevealTimeoutId
on unmount; the unmount-only effect just needs to reset the atom.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.13.5 Library Updates frontend PRs that change frontend files

Projects

Status: 6.13.5 LIBRARY UPDATES

Development

Successfully merging this pull request may close these issues.

3 participants