Repository navigation
refactor: plan startup sessions and bounded workspace reopening (3/5) - #5916
Merged
Merged
Conversation
5 of 6 tasks
6 of 9 tasks
…rkspaces # Conflicts: # packages/desktop/src/main/preferences/index.ts # packages/desktop/src/shared/types/preferences.ts
This was referenced Oct 28, 2026
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, #2345, #5596.
Plan startup windows from one session manifest, explicit targets and independent restoration preferences. Coordinate close and application quit through checkpoint/save/discard/cancel operations. Closed tabs cannot be revived by leftover recovery markers, and canceled quit retains every window.
Keep bounded workspace reopening templates from the most recently active window. Templates contain ordinary file/layout/view metadata and exclude draft bodies, document IDs and recovery references. Background windows cannot replace newer foreground state; live windows and documents are not truncated by cache limits.
Configuration/contracts PR #5918 is merged into develop (4c2fb08). This branch includes that base; its review diff contains only 10 session/workspace files, with no repeated configuration changes. It remains independently testable without the storage or layout adapters.
Validation on dea995d: all 1564 unit tests across 141 files, lint and typecheck pass locally. All 13 current-head CI checks pass. Review after #5917 for context; there is no serial branch dependency on it. Application integration and old recovery-path retirement belong to #5922.
Design documents and acceptance cases remain in the agreed Desktop folder; no design documents or screenshots are committed.
Private members use the repository's
_convention. Reuse one active-window selector for close/startup decisions and remove the unused window-registration helper. Startup plans no longer duplicate a restored snapshot's layout or carry fixed-false geometry fields. Use sharedStartupActionandSessionLifecycleenum values, with comments explaining lifecycle, restoration scopes and cache ownership.By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.