Skip to content

fix: preserve tabs after document read errors - #293

Open
PathGao wants to merge 4 commits into
alecdotdev:masterfrom
PathGao:fix/preserve-tabs-on-read-error
Open

fix: preserve tabs after document read errors#293
PathGao wants to merge 4 commits into
alecdotdev:masterfrom
PathGao:fix/preserve-tabs-on-read-error

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #292

Keep the tab, its in-memory buffer, and the recent-file entry when a document read fails. A transient missing-file event during an external atomic replacement can no longer close a recoverable document.

Depends on #288. Please merge in this order: #286#287#288 → this PR.

Validation:

  • npm ci
  • npm run check
  • npm test
  • cargo test

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev This addresses the tab-closing path observed around transient file replacement. It is ready after #286.

@PathGao
PathGao force-pushed the fix/preserve-tabs-on-read-error branch from e3bdb7f to 6947e98 Compare July 31, 2026 05:50
@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev I rebased the pending reliability line onto the existing PDF/window-capability chain to eliminate the two parallel branches. The single merge order is now #286#287#288#293#296#298; the complete rebased chain passes npm check, 132 Node tests, and 20 Rust tests.

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.

macOS: transient file-read errors close the current tab

1 participant