Files
wordcraft/docs
Nghiathan13andClaude Opus 5.5 0d1ede1291 #2376: a text file saved over itself closes without asking
Opening note.txt, typing, saving with Ctrl+S and closing still asked
"Do you want to save changes to note.txt?". Save in that prompt wrote
the file but left the window open, and only Don't Save closed it.

file.save marked the document saved only for formats that keep
everything (.docx, .odt, .rtf...). A save in any other format counted
as a copy, even over the file the document was opened from, so a .txt
or .md document could never become clean. The Save Changes prompt then
treated its own Save as "not saved" and cancelled the close.

A save over the document's own file now marks it saved in any format.
Save As to plain text, Markdown or a page image elsewhere is still a
copy that leaves the document unsaved, as before. AutoSave still
covers only the formats that keep everything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 18:27:15 +07:00
..