Always launch into the first category; remember only per-category sub-pages - #17
Merged
Merged
Conversation
…ub-pages The persisted category is gone from the session: the app now always opens on the rail's first tab (Images). What each category remembers is its own last operation, carried in lastOperation (which setOperation already keeps current, and the snapshot now folds the open category's operation into) - so Images still opens on Generate if that is where it was, and switching to Video lands on its remembered sub-page rather than the default. Closes #16 Co-Authored-By: Claude Opus 5 <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.
Closes #16.
On launch the app now always opens the rail's first tab (Images) instead of restoring the remembered category. Each category's last sub-page IS still remembered (
lastOperation, folded with the open category's operation at snapshot time): Images reopens on Generate if that's where it was; switching to Video lands on its remembered operation.Covered by three new unit tests (launch category, remembered sub-pages incl. the one open at close, fallback when a remembered operation no longer exists). 318 tests green; old sessions parse tolerantly.
🤖 Generated with Claude Code