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>
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>
Persist the always-on WebSocket pool settings in runtime snapshots.
Apply per-turn timeouts and opening limits without replacing the shared
pool, while existing connections retain their original lifetime settings.
Default residency to us and initialize unset values during migration while
preserving explicit clearing. Expand setting help and move input units to
suffixes throughout settings forms.
BREAKING CHANGE: Deployment openai.ws_pool configuration is removed.
Settings API and SDK updates must include the complete connection pool
object. Existing custom pool values must be saved in platform settings.
Co-authored-by: Codex <noreply@openai.com>
Persist request country, OAuth review model, residency, and account routing
as one runtime settings object. Migrate existing country and review values,
and apply routing headers from request snapshots and background policies.
Combine country and routing controls in the OpenAI platform settings page.
Remove residency and account routing from deployment configuration.
BREAKING CHANGE: Settings API and SDK callers must use openaiRequestSettings.
Existing residency and account routing values in YAML must be saved through
platform settings because deployment configuration no longer supplies them.
Co-authored-by: Codex <noreply@openai.com>
* 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Aggregate local usage over today and the previous six days in the deployment timezone. Keep the local usage period independent from grouped quota reset windows and preserve it when usage is empty.
Co-authored-by: Codex <noreply@openai.com>
Distinguish a dropped upstream owner from an unbound control channel so idle clients receive the existing replay reconnect notification after terminal delivery.
Co-authored-by: Codex <noreply@openai.com>
The idle expiry test reads a real TCP socket with a Tokio timeout while
the clock is paused. Auto-advance can reach the read deadline while the
socket is still waiting for readiness.
Follow the adjacent connection lifecycle test and pause only for the
60-minute jump. Use a running clock for the handshake and frame read.
Keep the exact limit error and zero-execution assertions.
Co-authored-by: Codex <noreply@openai.com>
Use provider profile maps, saved proxy IDs, and structured dashboard metrics across the admin API and UI. Require the quota reset mode on full settings updates.
Migrate existing Redis freezes atomically with cooldown writes and reuse validated OpenAI credentials during runtime decoding.
Co-authored-by: Codex <noreply@openai.com>
Plugins and admin HTTP clients must send both OpenAI settings on every replacement. Reject incomplete writes before changing the stored revision.
Co-authored-by: Codex <noreply@openai.com>
Remove obsolete field assertions and the ignored Codex binary TLS comparison. Keep coverage for request validation, compatibility, and local TLS handshakes.
Co-authored-by: Codex <noreply@openai.com>
* feat(usage): filter request errors by origin and focus the detail table
Co-authored-by: Codex <noreply@openai.com>
* fix(usage): preserve request columns and fill the error table
Keep reasoning effort separate and use the success table's column order. Let the error summary fill the space left by hidden columns and reuse the decoded upstream body when filtering saved errors.
Co-authored-by: Codex <noreply@openai.com>
---------
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Keep the client responsible for echoing turn state across requests. Scope WebSocket opening state to the first request and retain account isolation when moving a request to another account.
Co-authored-by: Codex <noreply@openai.com>
Let plugins page through retained account observations and find a prior baseline without reading raw provider documents or refreshing upstream. Reuse provider window identities and the existing completion index, preserving resets and gaps.
Co-authored-by: Codex <noreply@openai.com>
Migrate the session binding before requesting a full client replay when safe native continuation recovery exceeds the configured wait limit. Remove stale capacity retry headers from client responses while preserving upstream diagnostics and account rotation limits.
Co-authored-by: Codex <noreply@openai.com>
Rank quota scheduling strictly by configured reset windows and persist its settings independently from smart scheduling.
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Resolve explicit Claude session identities before account selection and
revalidate them after attempt middleware using the existing affinity policy.
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
* feat(settings): remove request history retention cap
Allow positive retention days beyond 31 throughout the form, domain rules,
and database constraint. Keep the existing default and saved settings.
Bound cleanup and account usage queries by stored data so large retention
windows remain safe without expanding empty history.
Co-authored-by: Codex <noreply@openai.com>
* test(admin): align retention policy coverage with positive windows
Accept long request retention windows while preserving zero rejection
for each target and independent event and audit retention settings.
Co-authored-by: Codex <noreply@openai.com>
---------
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Match independently scheduled hour and minute pairs while claiming each local minute once. Keep the existing string setting and database constraint, and edit the rules as tags using UI v0.11.0.
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
* fix(egress): honor deployment proxies for unbound outbound requests
Prefer the proxy selected for the request. Otherwise apply the deployment proxy and bypass rules consistently to HTTP and WebSocket connections, including background downloads. Keep explicit direct probes separate.
Co-authored-by: Codex <noreply@openai.com>
* fix(openai): preserve WebSocket dial errors
Recover the OS error or I/O kind from Hyper without retaining the endpoint. Keep refused connections distinguishable for both direct and proxied WebSocket dials.
Co-authored-by: Codex <noreply@openai.com>
---------
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Separate protocol identifiers from Provider identities and centralize shared
request facts and observations in gateway-protocol. Keep endpoint models
and private continuation state owned by Providers.
Reorganize the architecture documentation and clarify the shutdown guarantees
for buffered charges and observations.
Validated with workspace formatting, strict Clippy, 3013 affected-module
tests and 16 architecture checks. One reference-binary TLS test is ignored.
Co-authored-by: Codex <noreply@openai.com>
Reuse connection-scoped peer discovery for native HTTP and WebSocket forwarding. Strip the route header for ordinary upstreams and leave explicit plugin forwarding changes to plugins.
Co-authored-by: Codex <noreply@openai.com>