Commit Graph

1528 Commits

Author SHA1 Message Date
Luis Pater
f73b8132d0 fix(claude): stabilize advisor system prompt placement
- 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
2026-11-23 23:00:31 +08:00
Luis Pater
85225381d8 fix(antigravity): isolate signature cache by credential
- 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
2026-11-23 22:46:33 +08:00
Luis Pater
e049c336b6 fix(vertex): normalize Imagen predict protocol
- 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
2026-11-23 22:46:31 +08:00
Luis Pater
bffe6e7ea1 fix(antigravity): isolate connection pools after credential replacement
- 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
2026-11-23 22:46:30 +08:00
Luis Pater
aeed971579 fix(gemini): suppress pending filter frames on stream errors
- Prevent buffered Gemini policy text from reaching clients after scanner failures.
- Reject truncated successor frames and cover Gemini and Vertex authentication paths.

Closes: #7956
2026-11-23 22:46:28 +08:00
Luis Pater
ae3d80f70d fix(antigravity): honor retry hints on capacity errors
- Parse structured and header retry hints for HTTP 503 capacity responses.
- Verify the propagated delay is used by model cooldown scheduling.

Closes: #7957
2026-11-23 22:46:24 +08:00
Luis Pater
dc2455d998 fix(antigravity): validate compaction summaries
- Reject incomplete summaries before sealing Antigravity compaction responses.
- Preserve cached and reasoning token details in compaction responses and streams.

Closes: #7934
2026-11-23 22:46:15 +08:00
hkfires
f110136af3 fix(thinking): clamp budgets to levels for OpenAI models
OpenAI Chat/Responses and xAI appliers accept effort levels
only, so numeric budgets on hybrid models were not clamped
to supported levels. Clear Min/Max on a copy of the model
info before conversion, preserving catalog capabilities.

Use ClampLevel for the Devin swe-1-7 medium variant so
budget-derived levels select the correct upstream UID.

Add regression tests for Copilot, Devin, and OpenAI-compat
chat covering body and suffix budgets across formats.
2026-11-23 22:45:56 +08:00
hkfires
a516bf3b4f refactor(devin): use canonical thinking clamping
Replace custom Devin level ordering and clampEffort logic with
thinking.ParseLevelSuffix and thinking.ClampLevel, adapting to the
updated ConvertBudgetToLevel signature. Ties now resolve to the
lower effort per canonical rules, updating affected tests.

Document devin as a supported OAuth channel in config.example.yaml
with model alias and excluded model examples.
2026-11-23 22:45:55 +08:00
hkfires
a308c55bcd fix(thinking): correct budget to max level conversion
Add an xhigh upper bound of 32768 so larger budgets map to max
instead of xhigh. Convert translated budgets to adaptive effort
for hybrid Claude and Interactions models in validation rather
than in the Gemini-to-Claude translator, which now preserves the
budget for model-aware handling.

Validate user-defined models before normalization so translated
budgets are clamped to model limits while custom settings are
preserved. Reuse the canonical budget conversion for Devin and
prefer the lower effort on ties only for budget-derived levels.
2026-11-23 22:45:55 +08:00
Luis Pater
2f86992c94 feat(antigravity): route grouped models by requested thinking level 2026-11-23 13:23:05 +08:00
Luis Pater
5ddbfbaf4a fix(antigravity): preserve stream filter errors across terminal frames
- Retain pending Gemini filter errors when trailing stream frames contain no visible content.
- Reuse zero-output inspection so valid code and media content still disambiguate buffered filter frames.
- Add streaming regressions for terminal metadata, empty media placeholders, and executable code content.

Closes: #7918
2026-11-23 12:57:55 +08:00
Luis Pater
4087007c6a fix(antigravity): surface in-band count token errors
- Detect non-null error payloads before translating successful CountTokens responses.
- Preserve upstream status and existing 429, 403, and 401 credential bookkeeping.

Closes: #7920
2026-11-23 12:56:08 +08:00
Luis Pater
d0da9a9a1d fix(antigravity): preserve grounding metadata across stream aggregation
- Retain candidate grounding metadata when terminal SSE chunks omit it.
- Add a regression test for citations from an earlier response chunk.

Closes: #7919
2026-11-23 12:53:42 +08:00
Luis Pater
c2dcf7488e fix(antigravity): preserve non-stream filter errors across terminal frames
- Keep pending Gemini filter errors when trailing usage or finish frames contain no real content.
- Cover terminal metadata and empty text carrier regressions for Claude non-stream execution.

Closes: #7915
2026-11-23 12:33:16 +08:00
Luis Pater
16bcf5a072 fix(antigravity): re-clamp Claude thinking budget after output cap
- Clamp Claude thinking budgets when the model output limit reduces maxOutputTokens below an accepted requested ceiling.
- Add regression coverage for Antigravity Sonnet and Opus models, including case-insensitive model resolution.

Closes: #7916
2026-11-23 12:32:55 +08:00
Luis Pater
b8e3bc6647 feat(antigravity): align and minify upstream model requests
Resolve model enums per credential and correlate agent request IDs with session labels. Preserve the reference key order for agent envelopes and remove formatting whitespace when serializing all model requests.
2026-11-23 11:08:44 +08:00
hkfires
9abeef8c56 fix(copilot): flatten native assistant text history
Copilot Chat can ignore assistant history sent as plain text
content blocks, so flatten it to a string even for native
OpenAI requests. Leave annotated blocks and native user
content untouched, and keep payload overrides as final barrier.
2026-11-23 09:50:11 +08:00
Luis Pater
f911b45348 fix(copilot): flatten cross-protocol assistant text and record upstream API logs
- Flatten single-part and multi-part plain-text content arrays on cross-protocol assistant messages to strings in NormalizeCopilotRequest while preserving native Chat arrays, annotated blocks, and multimodal content, and guard Claude empty-string assistant content-to-null conversion behind tool_calls checks.
- Split CopilotExecutor.httpRequest into prepareAuthorizedRequest and doHTTPRequest so RecordAPIRequest runs only after credential and trusted-origin validation, capturing the final post-override wire payload and masked headers without logging direct HttpRequest callers.
- Capture upstream response metadata via RecordAPIResponseMetadata before decompression and header stripping, log non-2xx and non-stream bodies via AppendAPIResponseChunk, and record transport, decode, read, invalid-JSON, upstream-error, and translation failures via RecordAPIResponseError.
- Add request-scoped helps.BindAPIResponseStreamLogger and logging.APIResponseSnapshotter (snapshotted and closed during ResponseWriterWrapper.Finalize) with per-attempt synchronization so asynchronous copilotStream callbacks retain no *gin.Context reference and cannot race with or pollute reused pooled Gin contexts.
- Add regression and race tests covering Copilot Chat assistant text replay, non-stream and SSE stream upstream logging, error paths, payload override finality, multi-attempt retries, and concurrent mid-callback Gin context reuse.
2026-11-23 02:47:44 +08:00
Luis Pater
16bf182f20 fix(antigravity): isolate credits state by credential
- Scope Antigravity permanent failures, balances, hints, cooldowns, Home KV keys, and refresh state by credential registration.
- Fence late asynchronous publications and reclaim retired in-process state after same-ID credential replacement.
- Add regression coverage for standalone and Home KV paths, including zero-epoch replacements and equal timestamps.

Closes: #7795
2026-11-22 23:57:58 +08:00
Luis Pater
555bdb4bcb fix(antigravity): defer non-stream reasoning replay commit until after translation error checks
- Defer replayAccumulator.Commit in executeClaudeNonStream and cacheAntigravityReasoningReplayFromResponse in Execute until after ApplyPatchTranslationError, empty translation output, and TranslatedClaudeErrorPayload checks pass.
- Preserve pre-grounding response bytes for Execute replay extraction while relying on Commit's existing context.WithoutCancel detachment and leaving non-2xx body reads unchanged by design.
- Add KV-backed regression tests covering rejected apply_patch and translated Claude error turns across both non-streaming paths as well as successful persistence.

Closes: #7888
2026-11-22 23:11:54 +08:00
Luis Pater
c6f1d626a6 Merge pull request #7900 from router-for-me/registry
feat(registry): unify copilot and devin published routes
2026-11-22 22:00:23 +08:00
hkfires
f89d408e75 feat(registry): unify copilot and devin published routes
Introduce SourceModelID as the canonical provider-qualified
source behind each published route and store the Devin catalog
with bare IDs, qualifying it only at publication and lookup.

Generalize Copilot's published-route selection, cooldown
migration, websocket matching, and execution resolution to
Devin, and match OAuth settings and payload rules against the
canonical source so aliases and prefixed routes share config.

Handle qualified model IDs from newer Homes, preserve explicit
prefixed alias names, and resolve Devin auto effort against
catalog-supported levels instead of defaulting to high.
2026-11-22 21:36:09 +08:00
Luis Pater
ec25cc830a fix(antigravity): handle non-stream in-band errors and evict idle transports on 403/401
- Inspect top-level JSON error payloads on HTTP 2xx responses in Execute and route them through shared upstream error bookkeeping while deferring credits failure state clearing until response success is confirmed.
- Evict credential-scoped idle pooled transports on all 403 and 401 errors across Antigravity execute, streaming, and count-tokens paths, including mid-stream SSE error frames.
- Add regression tests covering HTTP 200 in-band errors in Execute and keep-alive connection eviction on HTTP and mid-stream 403/401 errors.

Closes: #7882
2026-11-22 18:33:00 +08:00
Luis Pater
327b4c61da fix(antigravity): detach caller cancellation when committing reasoning replay state
- Detach caller context cancellation inside antigravityReasoningReplayAccumulator.Commit so completed turns still persist thoughtSignature ledgers to KV if the client disconnects immediately after the terminal chunk.
- Allow ExecuteStream deferred commitReplay to proceed after terminal delivery when both streamErr and caller ctx.Err() are context.Canceled, while still blocking commit on upstream read errors or incomplete streams.
- Add KV-backed regression tests covering post-terminal disconnects, direct canceled-context commits, mid-stream cancellation, and live-context upstream cancellation errors.

Closes: #7881
2026-11-22 18:27:04 +08:00
Luis Pater
fb989e5fcb fix(antigravity): populate request.model and strip request.stream in CountTokens
- Populate request.model with a normalized models/<baseModel> identifier when absent or blank before deleting top-level model in AntigravityExecutor.CountTokens, while preserving caller-supplied request.model values and falling back to top-level model if req.Model is empty.
- Delete request.stream before payload finalization so non-counting streaming flags are stripped while user payload override and filter rules remain the final semantic barrier.
- Add regression tests covering request.model population across all Antigravity request formats, passthrough normalization edge cases, request.stream stripping, and payload finalizer ordering.

Closes: #7865
2026-11-22 17:43:44 +08:00
Luis Pater
ca43428b98 Revert "fix(antigravity): set X-Goog-User-Project header on Cloud Code PA requests"
This reverts commit acf238f6a9.
2026-11-22 17:35:10 +08:00
Luis Pater
55e5a7ead8 fix(antigravity): use signed int64 session IDs matching Hub format
- Generate random and deterministic session IDs as signed 64-bit decimal values, using FNV-1a for stable IDs.
- Preserve negative signs in reasoning replay keys and test positive/negative ID coverage.

Closes: #7857
2026-11-22 17:20:32 +08:00
Luis Pater
127c50bc76 fix(antigravity): emit uppercase thinkingLevel enum names
- Format request.generationConfig.thinkingConfig.thinkingLevel using uppercase trimmed enum names in the Antigravity thinking applier to match official protojson wire output.
- Add unit and executor regression tests covering uppercase thinkingLevel serialization, fallback levels, idempotency, and payload override precedence, and update existing Antigravity test expectations.

Closes: #7850
2026-11-22 16:51:14 +08:00
Luis Pater
3988a3897e fix(antigravity): isolate reasoning replay keys using canonical and body session identities
- Resolve CanonicalSessionIDMetadataKey and pass original request payloads and metadata to session.ExtractSessionInfo in antigravityReasoningReplayClientSessionKey so body subagent, task, thread, conversation, Codex multi-agent, and LCP identities stay isolated while preserving existing Claude Code, execution-session, prompt-cache, and session namespace priorities.
- Prevent plain metadata.user_id values from overriding execution sessions and skip reasoning replay when fork indicators appear without an identifiable child session ID.
- Add regression tests covering parallel subagents, body session fields, LCP canonical sessions, Codex multi-agent headers, priority invariants, and unidentified forks.

Closes: #7839
2026-11-22 16:27:48 +08:00
Luis Pater
28b281d532 fix(devin): preserve Gemini bare-Tink thought signatures on Responses replay
- Allow Devin-routed Responses reasoning items carrying unprefixed Vertex bare-Tink signatures to round-trip as Gemini-typed thought steps in responsesReasoningToInteractions.
- Add stream, non-stream, parallel tool-call, route-isolation, and rejected foreign/prefixed signature tests covering the Devin Gemini replay path.

Closes: #7842
2026-11-22 16:12:27 +08:00
Luis Pater
7f22743a07 fix(codex): preserve requested Responses include values by upstream backend
- Expand the Responses-to-Codex translator include allowlist to preserve Codex-verified entries (`web_search_call.action.sources`, `web_search_call.results`, and `output.encrypted_content`) alongside required `reasoning.encrypted_content` while keeping the zero-copy fast path.
- Restore all official OpenAI Responses `include` values in Codex HTTP and WebSocket executors before user payload finalization when targeting non-ChatGPT OpenAI Responses upstreams (SIWC or custom `codex-api-key` endpoints).
- Strip newly allowed Codex-only include entries in xAI and Meta executors before payload finalization to keep shared-translator non-OpenAI behavior unchanged, and add unit and executor regression tests.

Closes: #7833
2026-11-22 15:59:16 +08:00
Luis Pater
14e12fb5d3 fix(antigravity): scope incoming request.sessionId per credential and subagent
- Prefer credential-scoped derived session IDs over raw incoming request.sessionId values when auth.ID is set, and deterministically scope direct incoming session IDs via ScopeAntigravitySessionIDForAuth across standard, image, and web_search requests without synthesizing sessionId when absent.
- Preserve verbatim incoming request.sessionId when auth.ID is empty while keeping reasoning replay keying and final payload barrier rules unchanged.
- Add regression tests covering Gemini, native Antigravity, image, web_search, unenriched direct calls, subagent isolation, anonymous auth preservation, and payload override/filter barriers.

Closes: #7838
2026-11-22 15:54:08 +08:00
Luis Pater
acf238f6a9 fix(antigravity): set X-Goog-User-Project header on Cloud Code PA requests
- Attach X-Goog-User-Project whenever a non-empty project_id is available across generation, countTokens, fetchAvailableModels, credits loadCodeAssist, PrepareRequest, HttpRequest, and fetch_antigravity_models requests before custom header overrides.
- Scope automatic injection in PrepareRequest and HttpRequest to Cloud Code PA endpoints or matching per-auth base_url targets, and clear stale headers when switching credentials on a reused request.
- Apply cross-origin redirect header stripping across Antigravity executor HTTP clients and disable redirects in fetch_antigravity_models so project IDs cannot leak across origins.

Closes: #7837
2026-11-22 15:47:36 +08:00
Luis Pater
737ba4c60d fix(antigravity): default omitted minimumCreditAmountForUsage to zero when parsing credits
- Default missing, null, or blank minimumCreditAmountForUsage values on GOOGLE_ONE_AI entries to 0 while skipping invalid, negative, or non-finite values.
- Require finite positive credit amounts meeting a non-negative minimum threshold in both loadCodeAssist parsing and cached balance availability checks so zero balances are never treated as available.
- Add race-tested regression tests covering omitted, null, blank, zero, negative, and non-finite credit and minimum threshold values.

Closes: #7798
2026-11-22 15:22:56 +08:00
Luis Pater
d2086b4c17 fix(antigravity): guard credits refresh and project discovery on config and disabled auth
- Guard maybeRefreshAntigravityCreditsHint, queueAntigravityCreditsRefresh, and updateAntigravityCreditsBalanceForTask so Cloud Code PA credits queries are skipped when antigravity-credits is disabled or the auth is Disabled/StatusDisabled.
- Skip ensureAntigravityProjectID and post-refresh credits queueing in refreshTokenWithOptions (and guard ensureAntigravityProjectID directly) for Disabled/StatusDisabled credentials while keeping OAuth token refresh active.
- Add synctest-based race-safe regression tests for Issue #7785 and enable AntigravityCredits in existing credits unit test fixtures that exercise loadCodeAssist.

Closes: #7785
2026-11-22 14:02:47 +08:00
Luis Pater
94b164bf16 fix(antigravity): enforce short cooldowns, 429 bookkeeping, and schema sanitization in CountTokens
- Enforce active short-cooldown checks at CountTokens entry without credits bypass and share model-aware schema sanitization with buildRequestDoc before payload finalization.
- Route CountTokens HTTP 429 responses through shared 429 state bookkeeping with single idle-transport eviction per response and bound CountTokens response reads to 1 MiB.
- Add regression tests covering short-cooldown gating, 429 bookkeeping, bounded response reads, model schema sanitization, and payload-finalizer ordering.

Closes: #7786
2026-11-22 04:17:12 +08:00
Luis Pater
e0cc1cf876 fix(antigravity): preserve NONE tool calling mode for Claude models
- Skip overwriting functionCallingConfig.mode with VALIDATED in buildRequestDoc when the request already specifies mode NONE under camelCase or snake_case proto-JSON paths, canonicalizing non-canonical NONE strings in place.
- Add regression tests covering OpenAI Chat Completions, OpenAI Responses, Claude, Gemini, proto-JSON alias spellings, and final payload rule precedence on Antigravity Claude models.

Closes: #7792
2026-11-22 04:04:41 +08:00
Luis Pater
679166b87e fix(xai): evict ephemeral and 24h idle websocket ID states
- Evict non-reusable ephemeral xAI websocket ID states when their last in-flight stream ends, while preserving explicit session states from options or request metadata.
- Add 24-hour idle TTL expiration with periodic background cleanup and in-flight protection to xaiWebsocketIDStateStore without bounding total entry count.
- Coordinate persistent session and ID state acquisition and teardown under store.mu so CloseExecutionSession and bulk shutdown clear both stores atomically.

Closes: #7746
2026-11-22 03:31:21 +08:00
Luis Pater
84b838e1c6 fix(antigravity): honor HTTP Retry-After header fallback on 429 responses
- Add ParseRetryDelayWithHeaders in executor helps to fall back to HTTP Retry-After headers (including explicit 0-second hints) when a 429 body carries no retry delay while preserving body precedence and Gemini positive-only semantics.
- Thread httpResp.Header into applyAntigravity429State, decideAntigravity429WithHeaders, and newAntigravityStatusErrWithHeaders across Execute, executeClaudeNonStream, ExecuteStream, and CountTokens, passing nil headers for mid-stream SSE 429 frames.
- Add regression tests covering header fallback, threshold classification, explicit zero-second handling, MarkResult cooldown scheduling, and all four Antigravity request paths.

Closes: #7821
2026-11-22 02:38:04 +08:00
Luis Pater
d88d8dcb5c fix(antigravity): enforce tos-pause-window, Host, and custom auth headers in HttpRequest
- Short-circuit AntigravityExecutor.HttpRequest with a request-scoped 503 when tos-pause-window is active before token acquisition or upstream dialing.
- Normalize outgoing Host from the request URL, allocate a fresh header map without mutating caller headers, adopt updated auth snapshots after token refresh, and apply per-credential header:* attributes consistently with buildRequestDoc and CountTokens.
- Strip credential-configured custom headers, custom Host, and Authorization on cross-origin redirects, with race-checked regression tests.

Closes: #7824
2026-11-22 02:37:21 +08:00
Luis Pater
c813f779ec fix(antigravity): match claude 5.5 low, medium, and max effort variants for structured output
- Introduce a dedicated antigravityClaude55Model matcher covering low, medium, high, max, and reasoning effort suffixes so structured output requests fall back to prompt instructions instead of leaving native responseSchema and forcing VALIDATED tool mode.
- Keep the direct Claude claude55Model matcher scoped to its existing variants in claude_tool_choice.go to avoid changing direct Claude tool_choice normalization.
- Add regression tests covering Antigravity structured-output conversion and direct Claude tool_choice boundaries across all six new effort variants.

Closes: #7823
2026-11-22 02:25:37 +08:00
Luis Pater
d3e4db8b06 fix(antigravity): scope 403 validation and 401 inference errors to credential
- Mark Antigravity 403 VALIDATION_REQUIRED and 401 inference/auth errors as credential-scoped and close idle pooled transports on 403 TOS_VIOLATION and VALIDATION_REQUIRED.
- Propagate non-429 credential-scoped cooldowns to auth-level retry state and model projections so sibling models stop selecting blocked credentials.
- Separate refresh-clearable auth/grant cooldowns from non-auth credential cooldowns across OAuth refresh, token rotation, shadow unwrapping, and restart recovery.

Closes: #7814
2026-11-22 02:08:57 +08:00
Luis Pater
cec8a7f390 fix(proxyutil): honor context cancellation on SOCKS5 HTTP transports
- Delegate SOCKS5/SOCKS5H Transport.DialContext calls in BuildHTTPTransport through proxy.ContextDialer so caller deadlines and cancellation abort stalled dials and handshakes without adding a fixed dialer timeout.
- Isolate Antigravity project-discovery HTTP/1.1 transports via newAntigravityProjectDiscoveryHTTPClient with deferred CloseIdleConnections so canceled credential acquisition cancels abandoned in-flight dials without affecting the shared pool.
- Add SOCKS5/SOCKS5H cancellation, deadline, tunnel, and HTTP client regression tests verifying prompt request exit and peer socket closure.

Closes: #7819
2026-11-22 02:08:54 +08:00
Luis Pater
acb56c6cba fix(antigravity): apply Host, custom auth headers, and TOS_VIOLATION handling in credits query
- Set httpReq.Host from the resolved loadCodeAssist base URL and apply static credential-scoped header:* attributes without reading pooled caller Gin contexts or session IDs.
- Invoke applyAntigravityTOSState on bounded 403 responses in updateAntigravityCreditsBalanceForTask while reusing task/epoch and context cancellation guards so superseded refreshes cannot arm pool-wide TOS pauses.
- Add race-tested regression tests covering Host resolution and overrides, detached background header safety, and active versus superseded/canceled 403 TOS_VIOLATION handling.

Closes: #7820
2026-11-22 02:08:50 +08:00
hkfires
1ef770d9a1 feat(copilot): support Home-dispatched Copilot execution
Resolve Copilot routes from Home-provided model info when Home is
enabled, allowing models absent from the local catalog to execute,
stream, and count tokens. Attach resolved info before after-auth
interception and skip the local catalog refresh in Home mode.

Expose Copilot device-login completion and model discovery through
the SDK. Fix Codex token counting for string inputs, string message
content, and role-only messages.
2026-11-21 21:46:59 +08:00
Luis Pater
cb5f62f7f4 fix(devin): preserve gpt reasoning across responses tool calls
- Carry typed OpenAI reasoning arrays through streamed and non-streamed Responses without changing their bytes.
- Replay signed thoughts only on the Devin route and cover fragmented and late signatures across tool turns.

Closes: #7805
2026-11-21 21:26:02 +08:00
Luis Pater
7a5dee5207 fix(claude): preserve native haiku helpers on custom base URLs
- Make the prompt caching scope beta optional for Haiku 5.5 helpers without relaxing other identity checks.
- Cover helper detection and verify that streamed title requests preserve the original client and session.

Closes: #7809
2026-11-21 21:06:13 +08:00
Luis Pater
18a03e40c1 fix(antigravity): scan all user parts for session ID and match models case-insensitively
- Scan all parts of the first user turn in generateStableSessionIDFromContentsForAuth for the first non-empty text part so multimodal turns retain a stable sessionId across turns.
- Normalize model names to lowercase in buildRequestDoc, geminiToAntigravityDocForAuth, and Execute routing, including lowercase fallback lookup when capping maxOutputTokens.
- Add regression tests covering multimodal Turn 1 session ID stability and case-insensitive Claude, Gemini Pro, and image model handling.

Closes: #7760
2026-11-21 20:20:41 +08:00
Luis Pater
80fb55d8eb fix(antigravity): honor explicit lower and zero max-idle-conns-per-host pool limits
- Apply explicitly configured max-idle-conns-per-host even when lower than the base transport limit while preserving larger base limits when omitted, and include explicitness in antigravityTransportKey to avoid cache collisions across reloads.
- Treat max-idle-conns-per-host <= 0 as short-lived connection mode (MaxIdleConnsPerHost = -1) consistent with idle-conn-timeout <= 0 and ProxyConnectionPoolConfig, and align pool cap comments and docs with the 210s limit.

Closes: #7758
2026-11-21 20:14:23 +08:00