Repository navigation
Conversation
…ation # Conflicts: # packages/desktop/src/renderer/src/components/editorWithTabs/sourceCode.vue
This was referenced Oct 27, 2026
Closed
Member
Author
|
Consolidated into #5922. 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.
Summary
Connect the main-process document/checkpoint owner to actual editor windows, sandboxed IPC, preferences UI, native save/rename, file watchers and final close decisions. Renderer text and view changes checkpoint through one writer; startup uses the session manifest instead of scanning legacy window buffers. Corrupt state remains untouched and persistence failures keep the window editable and prevent an unsafe close.
Save As writes the captured text while newer typing remains dirty. Read-only transitions invalidate pending writes; external reloads become known disk baselines and deleted files retain their text. Preview replacement, renderer reload, file tree folds, all layout fields and native geometry use the managed window context.
Test plan
Notes for reviewers
Depends on #5918, #5917, #5915, #5919 and #5920 (and their prerequisites). All target develop; this branch includes prerequisites. Review the integration after foundation merge commit
6e82bb6a(including the canonical-root regression backported to #5920).The new host is enabled with MARKTEXT_SESSION_RECOVERY=1 for independent development and tests. This part deliberately limits startup to one window. Part 10 adds workspace recents, multi-window behavior and default activation. No old configuration/snapshot/localStorage migration, Hot Exit, history, orphan management UI or expiry cleanup is introduced. Design/progress documents remain on the desktop.
Refs #5596, #732, #3500, #519, #2345, #143, #2672, #3717, #2134, #1920, #1192, #2467. Issue closure is reserved for final default-enabled integration.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.