Repository navigation
fix(antigravity): show the agent's reply when a background command finishes after its turn - #135
Merged
Merged
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
…d finishes (pingdotgg#38864) agy ends its prompt while a backgrounded command still runs. When the command finishes, agy starts a reply by itself with no prompt open. T3 Code dropped that output and failed its permission request, so the thread looked stopped. The built-in Antigravity adapter and the registry agy path now continue in a new run, and wait for the reply's closing usage_update instead of the 3 s debounce. T3 tool titles with the "Run mcp_t3-code_<tool>" form are recognized again, so html_render pages show. Takes over pingdotgg#36138, pingdotgg#37485, pingdotgg#30083 and part of pingdotgg#35073. Co-authored-by: Denis Bolba <[email protected]> Co-authored-by: drstrangerujn <[email protected]> Co-authored-by: Vedanta-krit das (Alex Vedmedenko) <[email protected]> Co-authored-by: Julius Marminge <[email protected]> (cherry picked from commit 12be92d) Fork port: left out the provider-acp-registry and Hermes changes; T3's Antigravity provider does not use that path.
…and runs, and Stop ends it (pingdotgg#38916) agy ends its prompt while a command it backgrounded still runs, and replies by itself when the command finishes. T3 Code ended the run at the prompt, so the thread looked idle and Stop was not offered. The run now stays open until the command ends. A daemon does not hold it. Stop sends session/cancel, which ends the command in agy 1.5.11. A message sent while the command runs does not, so the command keeps running. A held run fails when the agent process exits. The Servers panel no longer lists an agent CLI's own ports. Takes over pingdotgg#35073 and pingdotgg#36585. Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: saphid <[email protected]> (cherry picked from commit f9b9bc7)
…round commands (pingdotgg#39421) (cherry picked from commit 505f6d6) Fork port: the fork reads deferFinalizeForBackgroundWork straight from the flavor (no negotiated-flag helper), and the steer test that sat next to this one in upstream is left out.
…ingdotgg#40328) (cherry picked from commit 0c921e1)
…ingdotgg#40858) A turn held open by a background command now ends after 30 quiet minutes, so a command whose finish never reaches T3 cannot leave the thread in Working forever. Fork port of upstream 344de5f, applied by hand: the fork lacks the scheduled-wake hold (pingdotgg#39806) and the prompt-steer refactor that upstream's diff sits in, so schedules are not held at all here and the scheduled-wake test is left out.
…apter options Upstream's test imports AntigravityAdapterV2RuntimeInput, which arrived with pingdotgg#36495; the fork does not have that change.
maschwenk
marked this pull request as ready for review
December 1, 2026 03:31
maschwenk
force-pushed
the
fix/antigravity-background-wake
branch
from
December 1, 2026 03:31
ddae99f to
e72c9cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when an antigravity agent started a long command in the background and ended its turn, the thread looked finished and nothing came back. agy does wake up and reply on its own when the command finishes, but we dropped that reply because no prompt was open, so it only showed up after the next message. hit this on a poster thread: 51 images generating, no progress, and the agent's "i'll check them as they finish" never happened
this ports upstream's fix. the turn stays open (thread shows working) while a background command runs, so the finish and the agent's reply land in the same run. stop still ends it,
t3_background_waitaccepts antigravity's own commands, and a turn held only by a command that goes quiet for 30 minutes ends on its own, so a lost finish can't leave the thread stuck on workingupstream changes, cherry-picked with
-x:38864 drops its hermes and registry half, which the antigravity provider doesn't use. 40858 is ported by hand because upstream's diff sits inside the prompt-steer refactor we don't have. that also means agy's own
schedulewakes aren't held (39806), and steering a wake run (39767) isn't here. the fork had never touched any of these files, so on the next upstream sync a conflict in them resolves by taking upstream's versionproof: talking acp straight to agy 1.5.12 with no t3 in between, the turn ended at 22 s, then agy sent the command's completion at 52 s and a reply at 55 s with no prompt open. the ported tests replay that shape and pass. not yet checked in a real thread on an installed build
still true after this: the fork closes an idle agent session after 30 min, so a background command that outlives the 30 min hold plus 30 min idle gets killed (upstream has the same problem, fix not merged)