Skip to content

Persist selected board across browser sessions#92

Open
Copilot wants to merge 2 commits intolstein/feature/remember-boardfrom
copilot/enhance-state-restoration
Open

Persist selected board across browser sessions#92
Copilot wants to merge 2 commits intolstein/feature/remember-boardfrom
copilot/enhance-state-restoration

Conversation

Copy link

Copilot AI commented Feb 26, 2026

Summary

The gallery's selected board (selectedBoardId) was excluded from redux-remember persistence, causing it to reset to "none" (uncategorized) on every page load. Removing it from persistDenylist restores the board on reload.

Graceful fallback is already handled: the existing addArchivedOrDeletedBoardListener validates the restored selectedBoardId against the listAllBoards response on app init and resets to 'none' if the board has been deleted, archived, or is otherwise unavailable.

- persistDenylist: ['selection', 'selectedBoardId', 'galleryView', 'imageToCompare'],
+ persistDenylist: ['selection', 'galleryView', 'imageToCompare'],

Related Issues / Discussions

Closes #[Enhancement]: Client state restores last selected board

QA Instructions

  1. Select any non-default board in the gallery.
  2. Reload the page.
  3. Confirm the same board is still selected.
  4. Delete the selected board, then reload — confirm it falls back to uncategorized.
  5. Archive the selected board with "show archived" off, then reload — confirm fallback to uncategorized.

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)
Original prompt

This section details on the original issue you should resolve

<issue_title>[enhancement]: Client state restores last selected board</issue_title>
<issue_description>### Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

No response

What should this feature add?

Much of the InvokeAI client state is saved, including the prompt, generation settings, and state of the various panels. When the user reopens a browser session, this state is largely restored. The exception is the current image board and the particular image that was last in view. The requested feature is to save and restore the current board and image.

Alternatives

No response

Additional Content

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Copilot AI changed the title [WIP] Add feature to restore last selected board and image Persist selected board across browser sessions Feb 26, 2026
@lstein lstein marked this pull request as ready for review February 26, 2026 05:07
@lstein lstein self-requested a review as a code owner February 26, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants