fix(pi): preserve Antigravity state across turns#7
Merged
Conversation
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.
Problem
The Pi extension loses Antigravity state across multi-turn and tool-call requests:
functionCall.idvalues are replaced and then omitted from replayed calls and responseslast_execution_idfinishReason: STOP, but Pi cancels immediatelyThe missing tool IDs make Claude Opus reject the continuation after tool execution:
Fix
functionCallandfunctionResponseTrace verification
Additional captures were taken from one continued agy 1.1.5 conversation covering:
The regression fixtures reproduce the captured execution-aware step sequence, same-model thinking/text-signature replay, tool-call signature placement, cross-model sanitation and roles, and GPT STOP-then-usage ordering.
Verification
npm run buildnpm run typechecknpm test— 1,270 passed, 25 todoPR #6 changes the same Pi adapter files but does not currently include these behaviors. They should be retained if that rewrite lands first.