mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
MCP docs: a failed batch leaves the files its steps wrote
The rollback of a failed command.batch (#1862) puts the documents back, not the disk. Say so, and how to keep a batch from writing unless it succeeds.
This commit is contained in:
1 parent
6bc0222074
commit
6fd31d4dbd
1 file changed
+3
-1
+3
-1
@@ -2124,7 +2124,9 @@ the Actions panel leaves the date out: playing it later dates the document then)
|
||||
command records the date it used (and any value it takes from the preferences) in its step of the batch's journal entry.
|
||||
A batch may open, switch, close or revert documents: each document it edits gets one undo step, the batch is
|
||||
journaled whichever document it ends in, and an error rolls every document back (the ones it opened close, the ones
|
||||
it closed or reverted come back).
|
||||
it closed or reverted come back). The rollback puts the documents back, not the disk: files its steps wrote (a save, a
|
||||
Save As, an export) stay written, new files included, as Undo leaves a saved file on disk. A caller that wants nothing
|
||||
written unless the whole batch succeeds puts the saves and exports last, or runs them after the batch.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"file.info","params":{"author":"Ada","keywords":"poster, fair","rating":4,"copyrightStatus":"copyrighted","copyrightNotice":"© 2026 Ada"}}}
|
||||
|
||||
Reference in new issue
Block a user