- 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
- Scope Claude signature recovery and writes to the active credential.
- Preserve scoped cache continuity across verified token refreshes.
- Fail closed for unscoped recovery and credential replacement.
- Add stream and non-stream multi-account isolation regression coverage.
Closes: #7960
- Convert Imagen requests and responses consistently across API-key and service-account execution paths.
- Handle non-streaming Imagen JSON directly on stream APIs while preserving final payload rule ordering.
Closes: #7955
- Scope pooled transports by stable auth identity and a digest of the refresh grant.
- Add a regression test proving replacement credentials use a distinct TCP connection.
Closes: #7961
- Prevent buffered Gemini policy text from reaching clients after scanner failures.
- Reject truncated successor frames and cover Gemini and Vertex authentication paths.
Closes: #7956
- Combine function declarations with code execution and URL context tools when translating mixed Chat Completions requests.
- Update native tool regression coverage while retaining the dedicated Google Search isolation behavior.
Closes: #7959
- Reuse the shared OpenAI file-data normalizer for assistant image parts to preserve base64 payloads with media parameters.
- Add a regression test covering parameterized assistant image data URLs.
Closes: #7958
- Parse structured and header retry hints for HTTP 503 capacity responses.
- Verify the propagated delay is used by model cooldown scheduling.
Closes: #7957
- Normalize omitted or blank Claude tool_use input to an empty JSON object string for Codex.
- Add a regression test that verifies the argument value and its JSON string type.
Closes: #7939
- Rewrap stream bootstrap errors with the original attempt ID across new and existing bootstrap paths.
- Add regression coverage for preserving outer and inner attempt metadata.
Closes: #7953
- Disable Claude thinking when max tokens cannot fit the minimum supported budget.
- Add regression coverage for minimum and sub-minimum output token limits.
Closes: #7954
- Emit valid JSON object strings for parameterless streaming and non-streaming tool calls.
- Cover both Gemini response paths with regression assertions for string type and value.
Closes: #7938
- Default missing Claude tool input to an empty object so Gemini receives a matching functionCall.
- Add regression coverage for functionCall and functionResponse pairing when input is omitted.
Closes: #7937
- Keep max token stream termination as MAX_TOKENS for Gemini clients.
- Cover max token and default stop termination behavior with regression tests.
Closes: #7936