Repository navigation
Open
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Use the Antigravity provider with the agy CLI 1.5.11 (
agy acp). - Ask the agent to change one line with
edit_filein a small file (small.ts, 210 B) and in a file over 8 KB (big.ts, 18.9 KB, the target on line 201). - Watch the tool row while the edit runs and after it completes.
agy 1.5.11 sends these frames (captured from agy acp, paths shortened). The announcement has no content, and the arguments are named Target and Replacement:
{"sessionUpdate":"tool_call","toolCallId":"call_15914574291821524103","status":"in_progress","kind":"edit","title":"File big.ts","locations":[{"path":"/workspace/big.ts"}],"rawInput":{"Path":"/workspace/big.ts","Replacement":"const target = 100;","Target":"const target = 10;"}}The completion resends the diff as the whole file before and after the edit:
{"sessionUpdate":"tool_call_update","toolCallId":"call_15914574291821524103","status":"completed","kind":"edit","locations":[{"path":"/workspace/big.ts"}],"rawInput":{"Path":"/workspace/big.ts","Replacement":"const target = 100;","Target":"const target = 10;"},"rawOutput":{},"content":[{"type":"diff","path":"/workspace/big.ts","oldText":"<18955 chars>","newText":"<18956 chars>"}]}No session/request_permission arrived in default mode, so the edit never passes through pending.
Expected behavior
The edit row shows the located hunk (@@ -201,1 +201,1 @@) while the edit runs and after it completes, for files of any size.
Actual behavior
- While running, every 1.5 edit shows no hunk.
AntigravityEditLocationmaps onlyTargetContent/ReplacementContent, and the content-less announcement becomes[{ "type": "diff", "patch": { "format": "omitted" } }]. - After completion, a file over 8 KB never shows a hunk. Tool text bounding cuts
oldText/newTextto their tail, so the diff is markedomitted. An earlier located patch would not survive either, becausemergeToolActivityDatareplaces the content with the resent entry. - Files under 8 KB render after completion from the whole-file texts.
Impact
Major degradation or frequent failure
Version or commit
main @ e8c4824
Environment
Linux, agy CLI 1.5.11 (Antigravity ACP Server 1.5.11), Gemini 4 Neon
Logs or stack traces
# Real frames replayed through normalizeAntigravitySessionUpdate, mergeToolCallState and
# normalizeAntigravityToolCall on main, then rendered with acpToolCallDiffPatch:
small.ts inProgress [{"patch":{"format":"omitted"}}] diff: none
small.ts completed [{"path":"small.ts"}] diff: @@ -7,6 +7,6 @@ ...
big.ts inProgress [{"patch":{"format":"omitted"}}] diff: none
big.ts completed [{"path":"big.ts","patch":{"format":"omitted"}}] diff: none
# Regression tests on main:
FAIL src/provider/acp/AntigravityEditLocation.test.ts > antigravityEditPatch > finds the target inside the announced search range, in either argument casing
AssertionError: expected undefined to be '--- /workspace/app.ts\n+++ /workspace…'
FAIL src/provider/acp/AntigravityProtocol.test.ts > Antigravity tool results > locates a 1.5 edit_file edit announced without a diff, through its whole-file completion
AssertionError: expected undefined to be '--- /workspace/app.ts\n+++ /workspace…'
FAIL packages/shared/src/toolActivity.test.ts > toolActivity > keeps a located diff patch when a later update resends that diff without one
AssertionError: expected [ { type: 'diff', …(3) }, …(1) ] to deeply equal [ { type: 'diff', …(4) }, …(1) ]
Tests 3 failed | 51 passed (54)Workaround
Open the turn's checkpoint diff.
Reacted by maximhar
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(server): Antigravity 1.5 edits show their diff while running and …
maximhar commentedon Nov 22, 2026
+1 — hitting this on T3 Code 0.1.11 (Windows x64) with Antigravity as well: small files (< 8 KB) show their diff, while larger files show "No patch available for this selection." Looking forward to #39073!