◉ANTIGRAVITY LABJP
Articles/Antigravity Basics
◉ Antigravity Basics/2026-11-27Beginner

When a Second agy Drops a "Server Restart" Notice Into Your Running Conversation — What to Decide Before Running Two Side by Side

In Antigravity CLI 1.5.17, starting a second agy while another is mid-turn can make it treat the live conversation as interrupted by a restart and run it too. Here is how to check your logs, a small wrapper that stops before launching, and how to recover.

Antigravity CLI51agy10troubleshooting134conversationlogs

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:

  1. The first agy is in the middle of a turn that calls tools (the conversation is marked as running on disk).
  2. A second agy starts, using the same data directory (by default ~/.gemini/antigravity-cli).
  3. On startup it logs Resuming 1 conversation(s) interrupted by server restart and resumes the first one's conversation.
  4. A notice ending in due to server restart is injected into the first conversation.
  5. 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"
done

If 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.

Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

◉ Antigravity2026-10-26
When the Agent Stops Answering From Your Attachment After /compact, One Canary File Tells You Why
After /compact in Antigravity CLI, replies stopped reflecting the file you attached. Canary files tell you whether it never arrived, was dropped by compaction, or only lost detail, with the 1.4.6 change and how /compact, /btw, and /rewind differ, checked against the official docs.
◉ Antigravity2026-10-24
The File Is Right There, but Linux Says "No Such File" — Check the Interpreter, Not the Path
When agy's grep search fails on Linux and the log says "no such file or directory" for a file that clearly exists, the culprit is the ELF interpreter. Here is how to confirm it, reproduce it, and work around it for now.
◉ Antigravity2026-11-26
Should the Orchestrator's Planner and Executor Share a Model? What Runs as One Agent in 1.5.17, and What I Keep Two-Phase
Since Antigravity CLI 1.5.17, choosing the same model and the same Effort for both Planner and Executor in /model runs a single agent. A different Effort keeps it two-phase. Here is a small script that reads settings.json to tell which you have, and where I draw the line.