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>
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>
Build GenAI requests directly from Responses input and preserve multimodal tool results. Select unary or streaming generation from the client transport and derive session IDs from isolated affinity keys.
Honor account credit preferences in generation and scheduling, and scope connection and SSE limits to Antigravity.
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>
Resolve declared model groups to concrete variants before account and model-policy checks. Preserve explicit model IDs and native request bodies, and expose only accessible groups in the catalog.
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>
Apply global client profiles to OAuth, token refresh and account background operations across OpenAI, xAI and Antigravity. Preserve Client Key overrides for model requests.
Co-authored-by: Codex <noreply@openai.com>
Bind workspace aliases to the account identity used by request isolation,
preserving same-account retries and rotating on account or session changes.
Shuffle characters from the project name and retain numeric suffixes.
Synchronize the generated SDK privacy action contract to fix the CI failure.
Co-authored-by: Codex <noreply@openai.com>
Derive stable client-scoped session aliases with two numbers from 1 to 1000,
remove workspace Git remotes and commit metadata, and preserve execution paths.
Expose the action through the privacy preset, editor, and preview controls.
Cover metadata carriers, session isolation, rollback, HTTP, and WebSocket reuse.
Co-authored-by: Codex <noreply@openai.com>
Keep the last quota observation when the upstream identity is unchanged. Include disabled OAuth accounts in quota maintenance while keeping them out of request selection.
Co-authored-by: Codex <noreply@openai.com>
Let accounts and groups manage model lists with the same editor, including custom IDs and common image models. Tighten spacing in the group form and give the request country policy its own settings card.
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>
Move ProxyEndpoint into the neutral upstream module so error observations no longer depend on account types. Keep proxy matching in the account adapter and verify host/port matching, redaction, and the owner dependency graph.
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>
Reserve a connection attempt for another eligible account when a new WebSocket request repeatedly fails before sending. Use the same rotation budget as HTTP while preserving session and replay restrictions.
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>
Apply the global request profile to account catalog discovery, warmup,
and diagnostic routing. Freeze each operation's identity through the
existing provider profile resolver.
Refresh verified offline releases and centralize their version, artifact,
and environment defaults. Cover ZIP64 MSIX metadata and keep release
update tests independent of the current bundled versions.
Fixes#703
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Make event delivery respond to downstream cancellation and pool shutdown. Return or discard sockets before publishing terminal events while preserving normal connection reuse.
Co-authored-by: Codex <noreply@openai.com>
Use the last successful catalog for the same account, credential revision, and plan until a refresh replaces it. Apply the same exclusions in memory and in PostgreSQL while preserving explicit allowlists and accounts with no catalog.
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>
Use each upstream handshake's message-size limit to select HTTP before
uploading oversized response.create frames. Remove fixed thresholds and
thread size hysteresis while preserving continuation replay and cleanup.
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>
* fix(openai): rotate new round-robin sessions without affinity hits
Strict affinity keeps a session on one account, but the shared request
cursor advanced on every scheduling load, including affinity hits. A new
session then took whatever slot that request volume happened to leave.
Advance a separate session cursor only when round-robin assigns an
account, and keep the request cursor for other strategies.
* fix(openai): advance round robin when an account assignment succeeds
Commit the session binding and round-robin cursor together after acquiring the account lease. Release a conflicting lease before retrying so concurrent first requests share a binding without consuming extra turns. Count delegated selections and preserve explicit plugin picks.
Verified with OpenAI provider tests, store tests against Redis and PostgreSQL, architecture checks, and workspace Clippy.
Co-authored-by: Codex <noreply@openai.com>
---------
Co-authored-by: koeria <riennie@qq.com>
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Treat x-retry-metadata: NO_MORE_RETRY as a hard signal to skip
same-account backoff and transport recovery, even when Retry-After
is within maxRetryAfterSeconds. Capacity failures still rotate under
the existing policy; server_error still returns the upstream error.
Co-authored-by: Cursor Agent <cursoragent@cursor.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>
Persist validated directories per credential revision. Restore them in bulk and refresh only missing, expired, or changed accounts with paced background requests. Filter large pools using current per-account evidence while preserving unknown and explicitly allowed candidates.
Co-authored-by: Codex <noreply@openai.com>