feat(ui): add canvas snapshot save/restore functionality#8978
Open
GGSSKK wants to merge 1 commit intoinvoke-ai:mainfrom
Open
feat(ui): add canvas snapshot save/restore functionality#8978GGSSKK wants to merge 1 commit intoinvoke-ai:mainfrom
GGSSKK wants to merge 1 commit intoinvoke-ai:mainfrom
Conversation
Add ability to save and restore canvas state snapshots, allowing users to preserve their canvas layout at any point and restore it later. This is useful when the canvas freezes or resets unexpectedly. Backend: - Add get_keys_by_prefix and delete_by_key to client_state persistence - Add corresponding API endpoints Frontend: - Add canvasSnapshotRestored reducer to canvasSlice - Add useCanvasSnapshots hook for snapshot CRUD operations - Add CanvasToolbarSnapshotMenuButton with save/restore UI - Add i18n keys for snapshot feature - Regenerate API schema types Tests: - Add tests for new client_state endpoints (prefix search, key deletion) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a canvas snapshot save/restore button to the toolbar (camera icon). Users can save the
current canvas state at any time and restore it later — useful when the canvas resets unexpectedly
due to freezes or reloads.
Reuses the existing
client_stateAPI with acanvas_snapshot:key prefix, keeping changesminimal.
snapshot.mp4
Related Issues / Discussions
Related to #6554 (canvas state not persisting). This provides a manual workaround by letting users
explicitly save/restore canvas state.
QA Instructions
Merge Plan
Simple merge. No DB schema changes — uses existing
client_statetable.Checklist
reducer only)
What's Newcopy (if doing a release after this PR)