* fix(openai): start weekly bucket warmup after reset-credit consume
After a successful reset or already_redeemed consume, refresh quota and
advance an already-enabled bucket warmup to the actual reset time. Pull
an early reset's registered future boundary back so due() is not blocked
until the original window ends. Keep the five-minute recheck and skip
warmup when the new round already has usage.
* fix(openai): make credit-triggered weekly warmup idempotent
Register confirmed redemptions with bucket progress and recheck usage in the warmup worker. Preserve precise usage evidence and keep rolling quota deadlines separate from confirmed resets.
Co-authored-by: Codex <noreply@openai.com>
* refactor(openai): keep only the latest warmup redemption
Reuse account warmup progress to recognize retries of the latest credit. Remove the receipt table and keep the existing storage contract.
Co-authored-by: Codex <noreply@openai.com>
---------
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Recognize known Claude and Gemini signature envelopes without wrapping
response signatures. Remove foreign thinking history while preserving
compatible or unknown signatures, ordinary text, and tool history.
Integrate cleanup into request field editing and reuse unchanged history.
Keep counting and unknown model families untouched, without session caches.
Cover native JSON/SSE, escaped fields, malformed envelopes, and model
switches; document recognition and account compatibility boundaries.
Co-authored-by: Codex <noreply@openai.com>
Pair uniquely named calls and results in adjacent model/user turns before
sending native Claude requests. Preserve existing IDs and raw business
fields, avoid ID collisions, and leave ambiguous history unchanged.
Cover JSON/SSE transport, partial IDs, replay stability, and scope limits.
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Start the confirmation deadline after the cancellation frame is written. Arbitrate acknowledgements and expiry in the reader and commit failures under the call table lock. Cover queued cancellation under backpressure and recovery at the default in-flight limit.
Co-authored-by: Codex <noreply@openai.com>
Align the Grok 1.0.92 transport profile, retain only continuation routing metadata, and filter downstream environment headers at provider boundaries.
Co-authored-by: Codex <noreply@openai.com>
Store icon choices per account and display them across the admin views. Refine account form controls and simplify the API key setup dialog. Pin the UI library to v0.14.0.
Co-authored-by: Codex <noreply@openai.com>
Share platform-specific configuration and CC Switch imports across key pages. Make connection test models searchable and hide account-wide forecasts for Antigravity.
Co-authored-by: Codex <noreply@openai.com>
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>
Prepend the configured prompt while retaining client rules, tool instructions, and system instruction metadata across generation and token counting.
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>
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>
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>