Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

macOS: transient file-read errors close the current tab

Open PathGao opened this issue 4 months ago • 0 comments

Problem

loadMarkdown closes the active tab whenever a read reports a missing file. A file watcher can observe a transient gap while another process atomically replaces the file, so this can remove a tab even though the document was just saved and remains recoverable.

Expected behavior

Keep the tab and its in-memory buffer on every load failure. Surface the error and let the user decide whether to retry, save, or close it.

Scope

Do not remove the recent-file entry or close the tab from the load error handler.

PathGao avatar Jul 31 '26 05:07 PathGao