The AI re-ran its document script and wiped out 40 minutes of his Word edits
A session generated a Word document with a script. The user then edited the document in Word for about 40 minutes and saved. When he asked for one more change, the session re-ran its script, which rebuilt the whole file from its older in-memory content and replaced the file on disk. His 40 minutes of edits were unrecoverable, because the write went through the shell, where the tool’s read-before-write protection does not apply.
How it works
- Session generates a document by script
- User edits it in Word for about 40 minutes and saves
- Asks for one more change
- Session re-runs the script from stale content
- The file is replaced wholesale
- 40 minutes of edits unrecoverable
Why it’s worth knowing
Co-editing a document with the agent is an ordinary workflow, and it falls exactly between the two write paths, one guarded and one not.
Where it’s from
Summarized from a public post on github.com. See the original ↗