Five minutes after I asked an agent to "fix the login flow," unfamiliar file names started scrolling past in the conversation. My hand hovered over Stop, and I froze — not because I didn't want to stop it, but because I didn't know what stopping would actually do to the half-written changes.
That hesitation came back several times a day once I started handing real work to Antigravity. Early on I just hit Stop by reflex, and each time I was left with a partial diff and no clear idea which parts I had asked for.
The thing I wish I'd understood first is this: stopping and rolling back are two different operations. Stop ends the agent's current turn. It does not undo anything already written to disk. Rolling back is a separate step, and which kind you pick depends on one question — does the agent's last plan still match what you want?
This guide is about agents that are already running: how to stop them, check what they left behind, and carry on without throwing work away. Everything below reflects the Antigravity app at v2.32.0 (November 2026) and the official changelog at antigravity.google/changelog. Where I couldn't confirm something there, I say so.
Three signs it's time to stop
I stop the agent when I see any one of these.
Sign 1: the same tool, the same arguments, three times in a row. It re-reads the same file, or runs the same search term again. That's the early shape of a tool-call loop, and in my experience waiting rarely gets it out.
Sign 2: the plan and the implementation disagree. The plan says "standardize on JWT," and the code starts adding session cookies. Every minute you let it continue adds to the later job of figuring out which version is real and which is debris.
Sign 3: it's writing to files you didn't want touched.
Rewriting package-lock.json, regenerating a config file from scratch. That's less a permissions problem than a sign the agent doesn't know your project's ground rules — so stop, and restate them.
The reverse also holds. If the tool results differ each time, the work follows the plan, and the files being edited make sense, it's usually worth waiting even if it's slow. Time spent thinking is less wasted than it looks.
Four ways to stop or roll back, and what each one touches
Here is what each control in the Antigravity app actually affects.
| Control | What stops | Files | Conversation | Use it when |
|---|---|---|---|---|
| Stop button | The current turn | Already-written changes stay on disk | Kept | The direction is right and you only need to steer |
| Stop on a subagent card | That subagent and everything it spawned (since v2.6.0) | Kept | Kept | One parallel branch has gone off course |
| Undo a conversation step (Confirm Undo) | — | Workspace returns to that point; files created later are listed for deletion | Rewound to that point | The agent was going fundamentally the wrong way |
| Confirm Undo, conversation only (since v2.19.1) | — | Untouched | Rewound to that point | You want to keep the files but drop the confused context |
Git (git restore, git reset) | — | Back to a commit you made yourself | Untouched | The app's undo didn't do what you expected |
If I had to put it in one line: Stop to pause the hands, conversation-only undo to drop the context, full undo to drop the files, and Git as the floor you can always stand on.
Stop pauses; it doesn't revert
Pressing Stop ends the current turn. Whatever the agent already wrote is still there. That's exactly why checking the diff right after stopping matters.
One small note: v2.23.0 fixed a bug where Antigravity sent a "the agent has finished" notification even after you stopped it yourself. If those notifications have been confusing you on an older build, updating is the first step.
I couldn't find an officially documented keyboard shortcut for stopping in the desktop app's changelog, so I'd check your own build's settings rather than trust a shortcut you read somewhere. The CLI is clearer: the changelog describes pressing Esc to interrupt an active agent stream (v1.0.6 fixed input being swallowed right after an Esc interrupt, and v1.2.10 changed it so the first Esc closes an open suggestions dropdown and the second one interrupts).
Undoing a conversation step (Confirm Undo)
Each earlier turn in the conversation has a circular-arrow Restore icon. Clicking it opens the Confirm Undo dialog, which lists the files that will be reverted.
The part that's easy to miss: files created after that point show up as deletions. Undo doesn't rewind file contents one by one — it returns the workspace to the state at that turn, and files that didn't exist then are removed. There's a thread on the official Google AI developer forum from people who confirmed that dialog without reading the list and lost files; more than one reply said, in effect, "luckily it was all in Git."
Since v2.19.1, the same dialog offers an option to revert only the conversation. You keep the files and rewind just the context. That has become the option I reach for most.
v2.17.0 also fixed a case where rewinding could hand back an older snapshot than the point you chose. The app now uses the first snapshot at or after that point, and replays steps when none exists. If undo gave you strange results on an earlier version, that may be why.
In the CLI, the equivalent is /rewind.
When Stop doesn't seem to stop anything
People do report this on the official forum. Here are the cases I've run into, in the order I check them.
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| You typed "stop" and it kept going | Messages sent while the agent works are queued (added in v2.3.0) | Is there a queued messages card above the message box? | Press Stop. For urgent instructions, use Send Now |
| "Executor has not processed the previous input yet" and your input won't go through | A tool call is still running and the executor hasn't accepted the next input (forum report) | Is a terminal step still shown as running? | Quit and restart the app — the step suggested in the forum reply |
| The main agent stopped but something is still working | A subagent or background task is still alive | Is a subagent card still showing running? | Stop it from the card. Since v2.6.0 that stops its descendants too |
| The turn never ends | A Stop hook keeps blocking the end of the turn | Do you have a Stop hook in hooks.json? | Since v2.6.0 the turn ends after repeated blocks; give the hook its own timeout |
| After a restart, a command's result looks suspicious | The command was killed by the restart | Is the step marked canceled? | Since v2.15.0 these show as canceled. Rerun it yourself to confirm |
If a hook is what keeps a turn from ending, I walk through the triage in How hook waiting changed in 2.6.0, and how to triage turns that never finish.
Three things I check right after stopping
In the first half-minute after stopping, I look at three things. Skipping this is how I used to lose track of what was going on.
1. The Git diff. The agent's edits are on disk. Start by listing what changed.
$ git status --short
M src/auth.ts
M src/middleware.ts
?? src/lib/jwt-helper.ts
?? src/types/session.d.ts
$ git diff --stat
src/auth.ts | 48 +++++++++++++++++++++++++-------------
src/middleware.ts | 12 ++++++----
2 files changed, 39 insertions(+), 21 deletions(-)M is a modified file; ?? is a new file Git doesn't know about yet.
2. Throw away only what you don't want. Keep what matches your intent and discard the noise. For new files, always look at the list before deleting anything.
# Discard changes to a single file
git restore src/middleware.ts
# Preview which untracked files would be removed (-n is a dry run)
git clean -n -- src/lib src/types
# If the list looks right, remove the specific file
git clean -f -- src/lib/jwt-helper.tsMy rule is never to run git clean -f without a -n first. Agent-created files and my own uncommitted files sometimes sit side by side.
3. Reread the last plan. Read the plan or task list the agent wrote most recently and ask whether it still matches what you want. That answer decides the next step.
Continue, or start over?
After stopping, there are really two paths.
Add instructions in the same conversation
If the plan was broadly right and you just need to steer, stay in the same conversation. Everything the agent explored so far is still in context, and you can use it.
I split my message into three parts — keep, remove, next:
I stopped you.
Keep: the JWT validation in src/auth.ts
Remove: the session cookie handling you added to middleware.ts
Next: add one test for an expired JWT
Rewind and ask again in a fresh context
If the agent was going fundamentally the wrong way, continuing in the same conversation tends to drag the broken assumptions along. I either use Confirm Undo to go back to just before things drifted, or tidy the files with Git first and choose conversation-only undo.
When I ask again, I add a line or two about what went wrong last time:
Please implement the auth changes.
Last time you touched both JWT and cookies and left it half-done.
This time, use JWT only and leave cookies alone.
If you hit Cmd+Z in the editor instead and watched the agent's changes vanish in one go, I cover recovery in Why Cmd+Z in Antigravity wipes out the AI's code, and how to get it back.
Three common misunderstandings
"Stop undoes the changes." It doesn't. Stop ends the turn; files already written stay. Undo or Git is what reverts.
"Undo only rewinds file contents." It returns the workspace to that point, so files created afterward are deleted. Read the Confirm Undo list for deletions before you confirm.
"Typing 'stop' in the chat stops it." Messages sent mid-turn are queued and delivered after the current turn. To stop, use the button, not words.
The night I stopped it the wrong way
Here's one that didn't go well. I'd asked an agent to push translated store listing text for my wallpaper app into each locale, and partway through it started rewriting folders for languages I hadn't asked about. I panicked, hit Stop, and in the same conversation said, "OK, please continue."
The result was worse than before. The confused context was still there, so the agent resumed on the same broken assumptions and rewrote the parts I'd just fixed. I didn't notice until the next morning, when I looked at the line count in git diff --stat and felt my stomach drop.
Now, right after stopping, I ask myself one question: does the agent's last plan still match what I want? If yes, I continue in the same conversation. If not, I rewind first and ask again.
Two habits that make stopping cheaper
Habit 1: make your own commit right before handing off
The app keeps internal snapshots, but they belong to the app — I can't inspect them the way I can a commit. v2.14.0 fixed a bug where local git hooks or global git config could stop the app from saving its internal checkpoints at all. In other words, there can be days when the app's safety net isn't there.
So before any larger task, I make one commit, even an empty one:
git add -A && git commit -m "before agent: auth refactor" --allow-empty
# If things go wrong, this is where you can return to
git log --oneline -1Knowing I can always git reset --hard back to that point removed most of my hesitation about stopping. Just remember that reset --hard discards every uncommitted change, so look at git status first.
Habit 2: write down the files you don't want touched
Antigravity reads AGENTS.md and GEMINI.md as rules. List the off-limits files there:
# Project rules
## Please don't modify
- `package-lock.json` (I change dependencies by hand)
- `migrations/*.sql` (schema changes get a separate review)
- `.env.production` (production secrets)
## Write policy
- If one of the files above needs to change, propose it in chat before writing code.Sign 3 became noticeably rarer after I did this. It isn't airtight, so I pair it with the permission presets (Default, Request Review and so on). If approval prompts keep interrupting you instead, Why "Run command?" keeps appearing in Antigravity may help.
What tends to trip people up next: stopping work nobody is watching
While you're at the screen, Stop is enough. Overnight CLI runs have no one to press it. I moved my stop conditions outside the CLI, and wrote that up in Moving the stop conditions for overnight Antigravity CLI runs outside the CLI.
The next time you hand a larger task to an agent, make one commit before you ask. Deciding whether to stop gets much lighter. That one step is the part I don't skip, even on rushed days.