- Clone the normalized level string in reasoningEffortFromConfig so ExtractReasoningEffort and ExtractTranslatedReasoningEffort do not retain the underlying request or payload byte slice.
- Add ownership regression tests verifying extracted usage effort labels do not alias large JSON input buffers across supported formats.
Closes: #8062
- Bump antigravityFallbackVersion to 2.35.1 so pre-refresh requests report the latest verified Hub release.
- Add verified changelist entries for Hub 2.35.0 (cl=1028447422) and 2.35.1 (cl=1029194470) so mapped versions no longer pin back to the 2.34.0 build metadata.
- Update version resolution test expectations to cover the new mappings and the unmapped-version pin behavior.
Closes: #8031
- Build an independent Gemini candidate document and local parts slice per OpenAI choice instead of sharing allParts and overwriting candidates.0.
- Preserve existing reasoning, reasoning_details, array content, tool call, thoughtSignature, finishReason, and index handling per candidate while keeping candidate role as model.
- Replace the legacy multi-choice overlay test with regression tests asserting multi-candidate isolation.
Closes: #8041
- Reuse the shared OpenAI file-data normalizer for assistant image parts to preserve base64 payloads with media parameters or metadata whitespace.
- Merge follow-up user turns into the preceding Gemini tool response turn in original part order while preserving demoted system and developer boundaries.
- Add regression tests and update multi-turn tool response assertions without altering tool response content serialization.
Closes: #8038
- Build the Gemini OpenAI Chat Completions response tool name map from effective function tool declarations matching request-side allowed_tools filtering and collision exclusion instead of Claude-only top-level names.
- Pass nil for originalRequestRawJSON when ConvertAntigravityResponseToOpenAINonStream delegates after restoring function names to prevent double restoration on chained aliases.
- Add streaming, non-streaming, allowed_tools round-trip, and Antigravity chained-alias regression tests.
Closes: #8037
- Filter inherited input_modalities through filterCodexInputModalities on the named-template branch in buildCodexClientModelsWithToolCapabilities, removing supports_image_detail_original when image input is absent.
- Remove stale audio input_modalities entries for gpt-6.2-sol and gpt-5.5 in the embedded Codex client model catalog and add regression tests.
Closes: #8036
- Extract reasoning from reasoning_content, reasoning, and reasoning_details (including reasoning.summary entries) with priority deduplication in both streaming and non-streaming OpenAI-to-Gemini response paths.
- Parse array-structured delta.content and message.content into ordered Gemini thought and text parts instead of serializing raw JSON literals.
- Add streaming and non-streaming regression tests covering reasoning fields, reasoning_details variants, and array content segments.
Closes: #8034
- Adapt native Claude Messages JSON payloads via ClaudeMessagesJSONToSSE before aggregating Gemini non-stream responses so text, thinking, tool calls, response ID, and usage are preserved.
- Merge message_start and message_delta usage metadata with accurate Gemini prompt, cache-read, thinking, candidate, and total token accounting, and map delta.stop_reason max_tokens to MAX_TOKENS.
- Add regression tests covering native Claude Messages JSON payloads, segmented Anthropic SSE streams, cache token accounting, and thinking token bounds.
Closes: #8033
- Parse thinking_level/thinkingLevel and thinking_budget/thinkingBudget from Google extra_body thinking_config variants as a lower-precedence fallback in OpenAI effort extraction and Antigravity intent routing.
- Apply the same fallback precedence during OpenAI Chat to Antigravity and Gemini request translation so upstream thinkingConfig matches extracted reasoning_effort metadata.
- Add unit and executor regression tests covering snake_case/camelCase variants, precedence rules, and Antigravity grouped-model routing.
Closes: #8018
- Explicitly set supported_in_api to true and default visibility to list for non-image synthesized fallback entries in applyCodexClientModelMetadata so third-party models do not inherit restrictive flags from the fallback template.
- Add a regression test verifying that synthesized third-party models advertise supported_in_api=true and visibility=list even when the fallback template has supported_in_api=false and visibility=hide, while image models remain hidden.
Closes: #8008
- Match codex-acp and codex_acp client identifiers in IsCodexClientUserAgent so ACP Codex requests bypass use_siwc and use outer Codex OAuth credentials.
- Add regression tests with the full @agentclientprotocol/codex-acp User-Agent covering SIWC bypass selection and Codex HTTP/WebSocket execution paths.
Closes: #8011
- Normalize Google/Gemini invalid_request_error input token limit messages in claudeErrorDetailFromText by prepending Anthropic's canonical "prompt is too long: " prefix so Claude Code can trigger automatic compaction.
- Match "input token count" followed by an optional parenthesized count and "exceeds the maximum" while avoiding double-prefixing and preserving non-matching errors.
- Add regression tests covering JSON responses, committed SSE errors, parenthesized count variants, idempotency, non-400 statuses, and output-token-limit false positives.
Closes: #8003
- Generate a unique msg_-prefixed fallback message ID in both streaming and non-streaming Antigravity-to-Claude response translators when response.responseId is absent or whitespace-only, while preserving trimmed non-empty upstream IDs.
- Add regression unit tests covering missing, empty, whitespace-only, and valid responseId values across streaming and non-streaming paths.
Closes: #8005
Use the catalog display name only as a fallback when no
configured name is present, so provider-specific names such as
Copilot variants are not overwritten.
Add copilot type and copilot/ prefix handling so dynamic
models report owned_by=copilot instead of falling back to
the vendor inferred from the base model name. Also document
devin as a supported OAuth model-settings channel.
Prefix static and plugin-static model IDs for copilot and devin
with "<channel>/" on the v8 model-definitions endpoint so the
returned IDs match those used for OAuth rule matching before
aliases and credential prefixes are applied. Leave v0 responses,
registry-fallback models, and other channels unchanged.
- Continue scanning geminiPartThoughtSignaturePaths when an existing signature field is empty, whitespace-only, or null so valid fallback signatures are promoted instead of shadowed.
- Preserve empty-field detection by returning ("", true) when all existing signature paths are empty, and add unit tests covering fallback promotion and all-empty cleanup.
Closes: #8001
- Recognize case-insensitive direct and none keywords via a shared helper so Redact aligns with Parse instead of returning "<invalid proxy URL>".
- Add unit tests covering empty input, direct-mode keywords with case and whitespace variants, and invalid suffixed inputs in TestRedactProxyURL.
Closes: #8002
- Detect snake_case function_call and function_response parts alongside camelCase in both the sanitization pass and fast-path check so valid first-call bypass sentinels are preserved and response signatures are stripped.
- Include nested function_call and function_response thought signature paths in geminiPartThoughtSignaturePaths and add regression tests covering snake_case, mixed-case parallel calls, and nested signatures.
Closes: #8000
- Add DeleteAntigravityReasoningReplayItemsIfUnchangedWithSnapshot in internal/cache to atomically return the newly written tombstone snapshot across local memory and Home KV modes.
- Update scope.cacheSnapshot in prepareAntigravityGeminiReasoningReplayPayloadDocWithOptions when conditional invalidation succeeds so the next turn's Commit CAS persists instead of silently dropping replay state.
- Add regression tests covering memory/KV commit recovery after pairing degradation and concurrent-write isolation.
Closes: #7997
- Update canonicalLCPProvider to map only google and gemini to gemini so vertex and aistudio use separate LCP affinity namespaces.
- Propagate Home LCP session, provider, generation, and node-kind metadata from HomeDispatchSelection into execution and failure reporting.
- Add regression tests for cross-provider LCP isolation and Home LCP namespace, stale-failure, and compaction metadata propagation.
Closes: #7995
- Validate that HTTP 2xx CountTokens responses are valid JSON objects before checking in-band errors or token counts, returning 502 Bad Gateway on empty, HTML, malformed, or non-object bodies.
- Strictly parse numeric totalTokens as a non-negative int64 via strconv.ParseUint before translation, rejecting missing, fractional, negative, or overflowing values while preserving explicit zero counts.
- Add hermetic regression tests covering invalid HTTP 200 CountTokens responses across formats alongside valid zero and positive counts.
Closes: #7992
- Emit unmarked complete functionCall arguments immediately as closed JSON deltas instead of fragmenting every call and appending duplicate closing deltas at stream end.
- Support Vertex partialArgs and willContinue streaming tool call continuations while preserving late unmarked continuations on their original tool call index.
Closes: #7966
- Return a retryable 502 zero-output status error in executeClaudeNonStream when an HTTP 200 SSE stream yields no valid JSON payload, preserving context errors and avoiding replay commits or credits failure-state resets.
- Add hermetic regression tests covering empty, HTML, and sentinel-only SSE bodies across Claude and OpenAI formats while confirming valid SSE responses without finishReason still succeed.
Closes: #7991
- Return a retryable 502 when an upstream HTTP 200 stream contains no valid SSE JSON payload.
- Cover empty and HTML responses while preserving valid terminal synthesis without finishReason and credits failure state.
Closes: #7990
- Select the plugin-capable support flag on Windows even when CGO is disabled.
- Add a regression test for Windows no-CGO build constraints.
Closes: #7977
- Translate Claude native and SSE terminal reasons into Interactions API terminal statuses.
- Preserve usage-only stream deltas until a stop reason arrives and cover all response modes with regression tests.
Closes: #7975
- Emit a valid empty JSON object string for Responses function calls with omitted or empty arguments.
- Add regression coverage for omitted and explicitly empty function call arguments.
Closes: #7974
- Guard websocket stream authentication logging so nil credentials do not panic.
- Add regression coverage for compact and required-websocket nil-auth paths.
Closes: #7970
- Check the in-memory model enum snapshot when local KV storage is inactive.
- Cover missing, matching, and stale standalone snapshots with regression tests.
Closes: #7969
- Ignore null and empty finish reasons so ordinary stream chunks keep the current interaction step open.
- Add a regression test covering consecutive content deltas followed by a terminal finish reason.
Closes: #7973
- Emit a truncated 502 stream error when Meta closes before response.completed or response.incomplete.
- Record failed usage with accumulated details and cover the regression with an end-to-end stream test.
Closes: #7971
- Merge adjacent pure-user contents before serializing Gemini interaction requests to satisfy role alternation.
- Add regression coverage for preserving text and image part order within a single user turn.
Closes: #7972
- Retain the pre-refresh grant identity when initializing signature cache metadata for legacy credentials.
- Add a regression test proving cached Claude thinking signatures remain recoverable after the first token rotation.
Closes: #7968
- Replace ClaudePositiveMaxTokens with ClaudeMaxTokensRaw to forward raw JSON numeric max_tokens verbatim (including 0 for Claude cache pre-warming and >65536 values for Gemini 4 long decodes) without silent filtering, truncation, or clamping.
- Remove silent maxOutputTokens capping from GeminiVertexExecutor so Vertex requests (including Gemini 4 long decodes up to 1,048,576 tokens) follow official Vertex API semantics.
- Avoid intermediate slice allocation in ClaudeStopSequences with ForEach.
- Synchronize captured request bodies via buffered channels in claude_generation_config_regression_test.go and add end-to-end gemini-interactions coverage.
- Centralize Claude max_tokens, stop_sequences, and output_config.format parsing in internal/translator/common/request.go to filter invalid/non-positive values and clamp huge max_tokens deterministically.
- Use the shared helpers in Gemini, Antigravity, and Interactions Claude request translators, adding Interactions response_format mapping and removing dead schema deletes.
- Apply provider output token capping across all Vertex execute/stream paths before the payload config barrier, using float comparison to close fractional and overflow bypasses.
- Add unit and executor regression tests covering translators, Antigravity Claude 5.5 prompt fallback, and Gemini/Vertex API key and service account paths.
- Translate stop sequences and JSON schema output settings into Gemini generation configuration.
- Preserve max output tokens for Gemini and cover both Gemini and Antigravity request paths.
Closes: #7964
- Select top-level caller system placement from the initial advisor tool declaration to keep the conversation prefix stable.
- Apply the same advisor-aware layout to message and count-token requests and cover both phases with a regression test.
Closes: #7941