Repository navigation
Conversation
This was referenced Oct 27, 2026
Member
Author
|
Consolidated into #5916. All commits and tests are retained there; this duplicate review thread is closed without merging into develop. |
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.
Refs #645, #3577, #732, #5596. Part 5 of the startup recovery series.
Summary
Define latest-session membership, all five startup selection policies, and coordinated window/application close behavior as independently testable logic. Restoring windows uses the actual session membership, explicit file requests take priority, ordinary-tab filtering preserves selected-window recovery content, and empty results produce a blank document.
The close controller collects decisions before discarding or destroying windows, commits the final session before destruction, keeps windows open on canceled/failed saves, and rejects unapproved newer edits or changed window membership during quit. Single-window close and application quit have distinct APIs.
These modules use typed external ports and do not activate a new application entry point. The later real-IO integration must verify the same behavior before related requests can be closed.
Type of change
Test plan
Notes for reviewers
Depends only on #5913, not on concrete storage #5914. This branch includes its prerequisite commits and targets develop. Review only this part at feat/startup-01-contracts...feat/startup-05-session .
Session and startup logic have no Electron/filesystem effects. Close ports replace external operations in controller tests; real filesystem behavior is covered separately by part 3 and is integrated later. No user data is migrated and no production close/startup path changes yet. Design/progress documents remain in the agreed desktop folder.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.