LaCorTeX
DocsThe agent

Reviewing diffs

The agent writes as it works and shows you everything it touched. What accept and reject actually do.

5 min readUpdated 23 November 2026

The agent does not queue its edits behind a prompt and wait. It writes to the files as it works, saves them, and finishes the turn; the review happens afterwards, against a record of how each file looked before it started. This is the same shape as Cursor, and it is worth understanding, because the two models fail in different ways.

1Why it writes first

A gate before every write sounds safer and reads worse. A turn that touches four files becomes four interruptions, each without the context of the others, and you end up approving edits one at a time before you can see whether they add up. Writing first and reviewing after means you judge the finished change.

The trade is that the files on disk are genuinely modified while you review. That is why the next three sections exist.

2Where the changes show up

  • In the file. Open a touched file and the editor shows a diff against its pre-turn content, with accept and reject on each block in the gutter.
  • In the explorer. Every file the turn touched is marked, so you can see the shape of the change before opening anything.
  • In the chat panel. Accept or reject a whole file, or the whole turn, without opening it.

The baseline is taken once, at the agent’s first touch of a file in that review. If it edits the same file three times, you review the sum, not three separate diffs. Your own typing during the review joins the same diff; nothing is blocked or lost while a review is open.

3Accept and reject

accept   keep what is there, stop tracking the filereject   write the file back to its pre-turn contentreject   on a file the agent created: delete it
Accept changes nothing on disk. It is a statement that you have read the diff.

That asymmetry is the part worth remembering. Accept is not a write, because the content is already there; it only clears the marker. Reject is a write, restoring what was there before. Accepting every block of a file by hand in the gutter is the same as accepting the file: when the baseline and the document meet, the file leaves review on its own.

There is no keyboard shortcut for this
Accept and reject are pointer targets: the per-block controls in the gutter, and the per-file controls in the chat panel. Nothing on the keyboard accepts a diff, so if a page anywhere tells you otherwise, it is wrong.

4Undo reaches all of it

An agent edit is an ordinary edit in the file’s history, so ⌘ Z undoes it like something you typed. So does a reject, which matters more than it sounds: rejecting a large change you then think better of is itself recoverable.

Renaming or moving a file mid-review keeps its review state with it, rather than silently dropping the marker and leaving an unreviewed edit looking accepted.

5Review state is not permanent

The markers live in memory. Quit the app with a review open and the edits survive, because they were written to disk as they landed, but the record of which files were still unreviewed does not, and neither does one-click reject.

In practice: finish the review before you close the app. If you did not, the change is still fully recoverable through ⌘ Z in an open file, or through git, which is the better answer for anything larger than one turn. Compile with ⌘ ↩ as usual; a review being open does not affect the build, because the build reads the same files you are looking at.

A reason to commit before a big ask
Not because the agent is reckless, but because a commit turns “undo this turn” into a single command that works after a restart, across every file, forever. One git commit before a large refactor costs five seconds.
Previous
← Asking for a change
Next
Inline rewrite →