Repository navigation
Conversation
6 of 9 tasks
This was referenced Oct 27, 2026
Member
Author
|
Consolidated into #5918. 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 #732, #645, #519, #2345. Part 1 of the 10-PR startup recovery plan.
Summary
Startup restoration currently discovers every legacy window buffer instead of a bounded session and mixes global preferences with per-window layout. Define the shared contracts for preferences, session/window membership, independent document instances, workspace reopening templates, and latest-content recovery, without activating a new startup path.
Add fresh per-window defaults and canonical resource/workspace identities. Workspace root order is preserved for display but does not affect identity; symlink aliases deduplicate, missing children resolve through existing parents, and an empty path cannot accidentally select the working directory.
This foundation does not close the linked feature requests; the corresponding integrated restart behavior must pass first. Design, dependency, and issue-coverage documents are maintained outside the repository as requested.
Type of change
Test plan
Notes for reviewers
Base: develop; no prerequisite PRs. No existing startup/close behavior or user files are changed. Contracts and storage ports live in shared/types/applicationState.ts; Node filesystem identity resolution stays in main/applicationState/identity.ts.
The independent module PRs will depend on these contracts and remain locally testable before the final integration. Historical references include #3500 (draft recovery), #3577 (workspace startup), #3717 (layout), #2421 (sidebar state), and #2672 (reading position). These remain regression references; no adjacent performance, titlebar, Hot Exit, or cloud-reload claim is made.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.