Skip to content

fix(runtime): prevent silent loss on dirty document close - #3

Merged
m-mdy-m merged 4 commits into
mainfrom
fix/guard-unsaved-document-close
Nov 5, 2026
Merged

m-mdy-m merged 4 commits into
mainfrom
fix/guard-unsaved-document-close

Conversation

@m-mdy-m

@m-mdy-m m-mdy-m commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Prevent document.close from discarding a dirty document unless the caller explicitly passes discard=true.
  • Preserve the UNSAVED_CHANGES error code through Runtime error normalization.
  • Make save capability checks fail explicitly with UNSUPPORTED when the host does not provide an atomic writer.
  • Add lifecycle tests for dirty-close rejection, explicit discard, and missing writer behavior.

Verification

Merged to main; the post-merge native Runtime workflow completed successfully.

@m-mdy-m m-mdy-m self-assigned this Nov 5, 2026
@m-mdy-m m-mdy-m added the enhancement New feature or request label Nov 5, 2026
@m-mdy-m
m-mdy-m marked this pull request as ready for review November 5, 2026 18:16
@m-mdy-m
m-mdy-m merged commit ca2f386 into main Nov 5, 2026
5 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T18:19:23.050442Z ecf45e9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant