I had handed agy a long job: tidying the store descriptions of my wallpaper app across several languages. While it worked, I opened another terminal and started a second agy for a quick question. As an indie developer I had been doing this almost every day without a second thought.
Then I read Issue #1935 on the Antigravity CLI tracker, and my hands stopped. The report says that when a second agy starts, it can treat a conversation the first one is still running as "interrupted by a server restart" and begin running it as well. In the reporter's setup, two processes kept rewriting the same conversation for 80 minutes.
The first thing to say is that this is not a configuration mistake. As of November 27, 2026 it is an open bug. So what I can offer is not a fix, but a way to see whether you are hitting it, and a launch order that avoids it.
What is happening
Reading #1935 together with the related #1872, #1792 and #1818, the sequence looks like this:
- The first agy is in the middle of a turn that calls tools (the conversation is marked as running on disk).
- A second agy starts, using the same data directory (by default
~/.gemini/antigravity-cli). - On startup it logs
Resuming 1 conversation(s) interrupted by server restartand resumes the first one's conversation. - A notice ending in
due to server restartis injected into the first conversation. - Both processes write steps into the same conversation until the step numbers collide and it stops with
agent executor error: expected tool step at index N, got CORTEX_STEP_TYPE_PLANNER_RESPONSE.
In #1935 the second process started only 27 seconds after the first. A gap of under a minute is enough. #1872 reports the same with many agy acp processes, plus tool calls reaching another conversation's MCP server, and notes it was not seen on 1.5.16.
I read the 1.5.18 release notes (November 26) as well and found no fix that matches this.
Checking whether it has happened to you
One log line tells you. agy writes logs to ~/.gemini/antigravity-cli/log/ as cli-DATE_TIME.log (per #1935 and #1737). This picks out only the logs that contain the resume line and prints the process ID next to it.
# Find logs where agy resumed a conversation "interrupted by server restart"
LOGDIR="$HOME/.gemini/antigravity-cli/log"
grep -l "interrupted by server restart" "$LOGDIR"/cli-*.log 2>/dev/null | while read -r f; do
echo "== $f"
grep -m1 "Starting language server process with pid" "$f"
grep "interrupted by server restart" "$f"
doneIf nothing comes back, you have not hit it, at least within the logs you still have. If something does, think back to whether another agy was running at that moment. A resume after you really did restart your machine is the intended behavior.
The other clue is in the conversation itself. If a notice about a restart appears in a running conversation when you stopped nothing, the agy you just opened next to it is the first suspect.
A small wrapper that pauses before launching
Remembering a rule is hardest on busy days. The moment a question occurs to me, I have already typed agy in a new terminal. So I added a shell function that stops and shows the PID when another agy is running.
# Put this in ~/.zshrc or ~/.bashrc
# If another agy is running, print its PID and do not launch
agy() {
local others
others=$(pgrep -f '(^|/)agy( |$)' | tr '\n' ' ')
if [ -n "$others" ] && [ -z "$AGY_ALLOW_SECOND" ]; then
echo "Another agy is running (PID: $others)" >&2
echo "Wait until its turn ends, or start with AGY_ALLOW_SECOND=1 agy" >&2
return 1
fi
command agy "$@"
}command agy keeps the function from calling itself. The pgrep -f pattern only matches command lines that start with agy. Depending on how you installed it, the process may look different, so run pgrep -fl agy once and adjust the pattern to what you see. If you keep agy remote-control serve running, it will match too, and you will want to exclude it.
I left AGY_ALLOW_SECOND=1 agy as a way through for the times I really need two at once. Without it, I suspect I would delete the function the third time it stopped me.
What I decided before running two at once
From the reports, the trigger is the first agy being in the middle of a turn. So I changed my order:
- Open a second agy only after the first has finished its turn and is waiting for input.
- While a long job runs, handle small checks in the browser or another tool, not in agy.
- When I do run two, keep it to a number where I can say out loud what each one is doing.
A conversation belongs to one terminal at a time. That is the whole rule in one line.
What stayed with me after reading the bug is how early the question "whose conversation is this?" sits for an agent. Between people, you can see whether someone is still talking. Processes have no face to read, only a "running" mark on disk.
Recovering if it has already happened
Quit the agy that started later first, so the two stop rewriting the same conversation. Then run pgrep -fl agy and confirm only one is left.
If the original stopped with the expected tool step at index error, pull the conversation ID from the log and reopen it with -r, the alias for --resume added in 1.5.16.
# Pull IDs from the lines where conversations were created (newest last)
grep -h "Created conversation" "$HOME/.gemini/antigravity-cli/log"/cli-*.log | tail -3
# Reopen with the ID you found
agy -r <conversation-id>Once it is open, read back the last few steps right away. Steps written by both processes are still there, and checking which edits you actually meant before asking for more saves a lot of worry later. Looking at the git diff and reverting anything you do not recognize is part of the same job.
I wrote about how the app and the CLI store conversations differently in why a conversation started in the app cannot be resumed from agy. If you are unsure how to judge whether a run actually finished, deciding success by the output rather than the status may help too.
One thing to try first
Run the log check above once and see whether the resume line shows up on your machine. Even if it does not, a single wrapper puts a short pause between having a question and opening a second agy. The more an indie setup grows, the more this small ordering seems to matter to me.