Skip to content

macOS: transient file-read errors close the current tab #292

Description

@PathGao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions