Repository navigation
Commit 030194f
Serialize file saves so an older write can't overwrite a newer one
Addresses review feedback: with autosave, a second save could start
while the first was still writing. If the older write finished last it
overwrote the newer content on disk with nothing left marked unsaved.
handleFileSave now queues saves and runs them one at a time; each queued
save reads the current content when it starts. A failed save doesn't
block later ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent e7da2ba commit 030194f
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
661 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
662 | 672 | | |
663 | 673 | | |
664 | 674 | | |
| |||
0 commit comments