Skip to content

refactor: plan startup sessions and bounded workspace reopening (3/5) - #5916

Merged
Jocs merged 13 commits into
developfrom
feat/startup-06-workspaces
Oct 28, 2026
Merged

Jocs merged 13 commits into
developfrom
feat/startup-06-workspaces

Conversation

@Jocs

@Jocs Jocs commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

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 shared StartupAction and SessionLifecycle enum 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.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Build artifacts for PR #5916:

Run: https://github.com/marktext/marktext/actions/runs/40637333607

Artifact Size Link
marktext-macos-x64 332.5 MB Download
marktext-windows-x64 335.5 MB Download
marktext-linux-arm64 571.7 MB Download
marktext-windows-arm64 327.3 MB Download
marktext-linux-x64 730.8 MB Download
marktext-macos-arm64 320.8 MB Download

@Jocs Jocs changed the title refactor: retain bounded workspace reopening templates (6/10) refactor: plan startup sessions and bounded workspace reopening (3/5) Oct 28, 2026
@Jocs
Jocs merged commit c962085 into develop Oct 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant