Commit Graph
16 Commits
Author SHA1 Message Date
7633a62368 fix(gateway): distinguish local failures from upstream errors (#788)
* fix(gateway): distinguish local failures from upstream errors

Co-authored-by: Codex <noreply@openai.com>

* refactor(gateway): distinguish account selection and request limits

Co-authored-by: Codex <noreply@openai.com>

---------

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-28 16:45:21 +08:00
ZyyandCodex 7b04e08d81 fix(antigravity): preserve catalog metadata and image discovery
Preserve upstream model descriptors in the AGY GenAI catalog. Follow upstream chat ordering and keep declared image models discoverable without exposing internal helpers in the model menu.

Co-authored-by: Codex <noreply@openai.com>
2026-11-28 01:12:19 +08:00
ZyyandCodex 8acf376091 perf(requests): reuse decoded requests and offload compression
Reuse HTTP and WebSocket decoding when middleware leaves the body and headers unchanged. Bound zstd compression concurrency and cancel queued work when the request is dropped.

Co-authored-by: Codex <noreply@openai.com>
2026-11-27 23:09:21 +08:00
f46b2be957 fix(antigravity): display the subscription description from Google (#781)
* fix(antigravity): show subscription tier labels

Co-authored-by: OpenAI <support@openai.com>

* fix(accounts): keep model IDs visible on one line

Co-authored-by: OpenAI <support@openai.com>

* fix(accounts): separate tunnel latency from the address

Co-authored-by: OpenAI <support@openai.com>

* fix(antigravity): display the subscription description from Google

Align account plan labels with Antigravity Desktop and preserve raw tier IDs for scheduling. Keep the existing model column and tunnel field layouts.

Co-authored-by: Codex <noreply@openai.com>

---------

Co-authored-by: OpenAI <support@openai.com>
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-27 12:02:39 +08:00
8c36215899 perf(plugins): skip unrequested middleware bodies and WebSocket calls (#783)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-27 12:00:55 +08:00
ZyyandCodex 95f8a8e9c8 refactor(catalog): keep client menu projection in API layer
Expose authorized executable model metadata from Core and project Antigravity visibility, names, and ordering in the API layer. Cover menu pagination and mixed-provider protocol isolation.

Validation: 1,408 targeted tests and 18 architecture tests passed; workspace Rustfmt and strict Clippy passed.

Co-authored-by: Codex <noreply@openai.com>
2026-11-27 11:17:17 +08:00
ZyyandCodex 0118ec01e9 fix(catalog): scope client model menus to executable protocols
Use the upstream agent menu for Antigravity and preserve the union of authorized models for generic clients. Select protocol-specific entries from eligible account catalogs before deduplicating model IDs.

Co-authored-by: Codex <noreply@openai.com>
2026-11-27 10:54:00 +08:00
ZyyandCodex 8c742bd593 fix(antigravity): align GenAI authentication and OAuth requests
Accept x-goog-api-key on GenAI endpoints while preserving Authorization precedence and existing endpoint scopes. Allow the header in CORS preflight responses.

Apply OAuth request identity without rebuilding business JSON, filter gateway identity headers and labels, and update the CLI baseline to 1.5.17. Document the authentication and transport contracts.

Validation: workspace Rustfmt and strict Clippy for gateway-api and provider-antigravity passed. All 823 API, provider and architecture tests passed, with none skipped. Live upstream validation was not rerun.

Co-authored-by: Codex <noreply@openai.com>
2026-11-27 00:37:27 +08:00
ZyyandCodex bc3dbb60c0 refactor(api): separate platform-specific data plane concerns
Move Codex client extensions and OpenAI-only endpoints into dedicated modules.
Share HTTP transport rules and keep OpenAI identity filtering explicit.
Remove redundant request metadata and test generation through actual routes.

Co-authored-by: Codex <noreply@openai.com>
2026-11-27 00:26:15 +08:00
ZyyandCodex 88da70a77b fix(chat): consolidate validation and preserve request errors
Share Chat request validation and derive routing capabilities only from
declared protocol fields. Reject unsupported custom tool formats instead
of dropping their constraints, and retain safe error codes and parameters
through provider, core and HTTP boundaries.

Remove unused search adapters, duplicate state and unreachable branches.
Align module names and document supported platforms.

Validation: workspace formatting and strict Clippy; 4,736 tests passed,
0 skipped. All 24 live checks passed across OpenAI, Antigravity, xAI and
DeepSeek Messages compatibility.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 23:35:27 +08:00
ZyyandCodex 24fed4ba3a test(gateway): consolidate redundant protocol coverage
Merge duplicate Chat codec and native response cases into their owning suites.
Keep distinct authorization, wire fidelity, terminal and resource lifecycle
checks while removing obsolete provider fixtures and repeated input variants.

Validation: 2,534 related tests passed; final native fixture recheck passed.
Workspace formatting and strict Clippy for the five affected crates passed.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 22:50:23 +08:00
ZyyandCodex daa8292860 refactor(gateway)!: isolate Chat conversion from native protocols
Route native requests only to providers that support their wire protocol.
Convert Chat Completions directly to Responses, Messages or GenAI while
preserving the shared request lifecycle and native continuation ownership.
Remove provider-side cross-protocol adaptation outside compat modules and
update protocol, provider, routing and delivery regression coverage.

Validation: workspace fmt and strict Clippy; 4,741 tests passed, none skipped.
Live-tested native Codex, AGY and Grok harnesses plus Chat JSON/SSE and tools.

BREAKING CHANGE: Built-in cross-protocol conversion is available only through
Chat Completions. Native callers must use a matching provider protocol.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 22:37:09 +08:00
ZyyandCodex 8bee00c139 fix(antigravity): acknowledge Responses WebSocket prewarm locally
Complete root prewarms after routing without selecting an account or sending a model request. Preserve the audit record and exclude prewarms from inference usage and continuation recovery.

Cover queued requests arriving between output deltas, response ordering, and idle connection closure.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 17:01:27 +08:00
ZyyandCodex 2c6d4a8eb6 fix(responses): recover stateless Antigravity WebSocket continuations
Request full-input replay after completed Antigravity turns. Drain queued requests before reconnecting and keep the delivery hint separate from native OpenAI session state.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 17:01:14 +08:00
ZyyandCodex 6de36f4b54 fix(genai): keep native SSE streams silent between frames
Let the downstream endpoint select keepalive behavior before the first frame and during delivery. Preserve HTTP error status when native Gemini generation fails before producing output.

Refs #777

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 11:54:26 +08:00
ZyyandCodex be6aa130d2 feat(gateway): integrate Antigravity and reorganize architecture
Preserve main quota, Guardian, and WebSocket fixes alongside the new provider and module organization.

Co-authored-by: Codex <noreply@openai.com>
2026-11-25 16:03:37 +08:00