Review and undo
Agent edits go into your file straight away, with a restore point of the version from before. This page shows how to keep or discard an edit, undo one you already kept, and go back to an earlier version.
How agent edits work#
- The agent writes each edit to the file while it works.
- Nebula Writer records two restore points for every agent edit, Before agent edit and Agent edit.
- A review bar then appears above the document. Keep accepts the change. Discard puts the previous version back.
- An edit you haven't decided on stays in the file until you discard it.
The review bar#
The bar's title tells you what the agent did:
| Title | What happened | Your choices |
|---|---|---|
| Review agent edit | The agent changed a document | Keep or Discard |
| Review workbook edit | The agent changed a spreadsheet | Keep or Discard |
| Review new file | The agent created a file | Keep or Discard |
| Review file deletion | The agent deleted a file and moved it to the Trash | Keep or Restore |
| Review agent action | One request changed several files | Keep all or Discard all |
To review an edit:
- Look over the highlighted changes in the document.
- Choose Inspect changes to see each change as Before and After text. Use the arrows to move between changes.
- Choose Keep or Discard.
When the review bar has focus, you can use the keyboard: Y keeps, N discards, J or → goes to the next change and K or ← to the previous one.
The agent pane also lists each changed file with Needs review and a Review changes button that takes you to it.
Word, PowerPoint and Excel#
Edits to these files are always kept or discarded as one decision. You can inspect each change, but you can't keep some and discard others. If only part of an edit is right, discard it and ask again with a narrower request, or keep it and fix the rest yourself.
While an agent edit to one of these files is waiting for review, you can't export that file to PDF. Keep or discard the edit first.
Markdown, LaTeX and text files#
For these text formats the review bar can also offer Keep and Discard for a single change, with Keep all and Discard all for the whole file. Most agent edits still show the one-decision bar.
Undo a change you already kept#
The File changes panel lists what the agent has changed. Open it with the File changes button at the top of the agent pane, or click outside the document and press ⌘⇧H on a Mac or Ctrl+Shift+H on Windows and Linux.
- This chat shows changes from the current conversation. Project shows changes across the whole project.
- Revert undoes a change. When one change touched several files, Revert file undoes it in just one of them.
- Changes still waiting for a decision show Review in document instead.
You can also undo the most recent agent action with ⌘⇧Z or Ctrl+Shift+Z, and redo it with ⌘⇧Y or Ctrl+Shift+Y. These only work when focus is outside a document; inside an editor, ⌘⇧Z is the editor's Redo.
If you've edited the file since the agent did, Nebula Writer won't overwrite your newer work. Use History instead.
Go back to an earlier version#
History keeps restore points for Markdown, LaTeX, Word, PowerPoint and spreadsheet files.
- Click History at the top of the open document.
- Under Restore points, find the version you want. Names such as Agent edit, Before agent edit, Saved file and Saved by you show where each one came from.
- Choose Compare to see how it differs from the current file.
- Choose Restore.
To mark a moment yourself, choose Save a restore point. Restoring a file changes only that file.
Restore points are stored on this device, not in your project folder, and older automatic ones may be removed over time. Keep your own backups for work that matters.
Which one to use#
| You want to | Use |
|---|---|
| Undo an edit you haven't decided on | Discard in the review bar |
| Undo an agent change you already kept | Revert in File changes |
| Return a file to an earlier state | History, then Restore |
| Get back a file you deleted | Undo in the notice (for 5 seconds), then your system Trash |
| Get back a file the agent deleted | Restore in the review bar, or your system Trash |
After you discard or revert, a narrower request usually works better:
Edit only the Risks table on page 2. Keep the row order and every number. Ask me before changing anything else.