Repository navigation
fix: the four confusing behaviours from the audit - #113
Merged
Merged
Conversation
claude-sonnet-4-6 advertised low/medium/high/max but is non-thinking on this backend: only ids carrying 'thinking' get a budget and the request path drops any client thinkingConfig, so the four entries did nothing. Removed instead of silently ignored. detectErrorType matched a bare 'model turn' substring, so any timeout or 429 that happened to mention it aborted the live session and showed a recovery toast without recovering anything. It now matches only the wording the backend actually rejects with. In v2, http.response dequeued pendingBySession without filtering URL or provider, so another HTTP call in the same session took Antigravity's pending entry; the dequeue now compares normalized URLs. MAX_WARMUP_RETRIES never fired because the counter only returned 0 or 1. Signature cache keys did not cover gemini-4 or the -xhigh/-max levels, and cachedContent was deleted when it should survive. Sixteen new tests. Suite: 49 files, 1238 tests.
Automated verification
typechecktestsbuild |
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.
The four section-4 defects, all of them things that make the plugin lie about what it is doing.
Inert thinking variants.
antigravity-claude-sonnet-4-6offeredlow|medium|high|max; the model is non-thinking on this backend (isClaudeThinkingModelrequiresthinkingin the id) and the request path discards clientthinkingConfig, so all four did nothing. Removed, with the reason written where they used to be.detectErrorTypetoo broad. A bareincludes("model turn")aborted the live session on any timeout or 429 whose text mentioned it, showing a recovery toast for a payload that was never going to be sanitized.Cross-session dequeue. In v2,
http.responsedequeuedpendingBySessionwithout filtering URL or provider, so another HTTP call in the same session took Antigravity's pending entry. It now compares the normalized URL, sincenew Request()normalizes its own.MAX_WARMUP_RETRIESnever fired: the counter only returned 0 or 1, so the cap was unreachable. Signature cache keys also now covergemini-4and-xhigh/-max, andcachedContentis no longer deleted.Sixteen new tests, including two concurrent HTTP calls in one session that must each dequeue their own. Suite: 49 files, 1238 tests.