Commit Graph
768 Commits
Author SHA1 Message Date
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 9961ffeeb9 fix(antigravity): align Gemini request translation and transport
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>
2026-11-26 18:55:27 +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 88da31137b fix(protocol): preserve semantics across provider translations
Centralize Responses web search selection across protocol and provider adapters. Map GenAI generation settings directly from Responses while sharing content, tool, and signature conversion.

Preserve translator error sources and cover request parameters, search selection, and failure propagation.

Validation: 292 scoped tests, cargo fmt, and scoped Clippy.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 14:21:29 +08:00
ZyyandCodex 75c51b9955 fix(antigravity): honor Responses web search tool choices
Preserve function tools on coding requests with optional web search. Route required live searches to the authorized account search model and return grounded citations in JSON and streaming responses.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 13:40:25 +08:00
ZyyandCodex 319b3be0f8 feat(antigravity): expose scoped model groups in the Codex catalog
Project reasoning variants, descriptions, image support, and context windows from the models available to each client key. Apply output limits to the selected model and account.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 12:53:37 +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 a6bdeb17f2 fix(accounts): attribute Antigravity window usage by model group
Co-authored-by: Codex <noreply@openai.com>
2026-11-26 11:30:57 +08:00
ZyyandCodex ce966d3d04 fix(antigravity): refresh stale quota after account activity
Co-authored-by: Codex <noreply@openai.com>
2026-11-26 11:30:47 +08:00
ZyyandCodex 080d3867f1 fix(antigravity): resolve native model groups by thinking level
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>
2026-11-25 23:39:26 +08:00
ZyyandCodex 0bf3c8daaf feat(accounts): show recent week usage for Antigravity
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>
2026-11-25 23:34:29 +08:00
ZyyandCodex 9d3d7ef223 refactor(privacy): remove combined workspace action
Use independent workspace privacy steps and widen the processing method column.

Co-authored-by: Codex <noreply@openai.com>
2026-11-25 22:43:44 +08:00
ZyyandCodex 23a4fa42c4 feat(privacy): split workspace anonymization into editable steps
Co-authored-by: Codex <noreply@openai.com>
2026-11-25 21:33:40 +08:00
ZyyandCodex d777945c93 fix(openai): refresh macOS client identity presets
Use macOS 27.2.1 for Desktop and CLI defaults. Select the TUI entry and Apple_Terminal/488.9 in the macOS CLI preset while preserving saved identity choices.

Co-authored-by: Codex <noreply@openai.com>
2026-11-25 21:05:27 +08:00
ZyyandCodex 3e747cb233 fix(providers): use global identity for background operations
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>
2026-11-25 21:02:04 +08:00
ZyyandCodex a6acb7cb9a feat(privacy): scope shuffled workspace aliases to accounts
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>
2026-11-25 19:29:01 +08:00
ZyyandCodex fb188e7688 feat(privacy): anonymize Codex workspace metadata per session
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>
2026-11-25 18:51:23 +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
Zyy 21622eeacd fix(quota): confirm recovery despite drifting reset times 2026-11-24 13:44:47 +08:00
ZyyandCodex 98724da968 fix(openai): retain the exhausted window from quota errors
Co-authored-by: Codex <noreply@openai.com>
2026-11-24 13:19:41 +08:00
ZyyandCodex a515d54136 fix(openai): recover quota at unmatched usage limit resets
Co-authored-by: Codex <noreply@openai.com>
2026-11-24 12:48:56 +08:00
ZyyandCodex 8075487f57 fix(openai): align spend limits and WebSocket logging with Codex 0.172
Co-authored-by: Codex <noreply@openai.com>
2026-11-24 11:49:02 +08:00
ZyyandCodex f46fe43bf3 fix(openai): honor parent account affinity for Guardian review models
Check the bound parent against the authorized direct-model candidates before switching a descendant review. Keep the original model when the parent is outside that scope.

Co-authored-by: Codex <noreply@openai.com>
2026-11-23 18:09:33 +08:00
ZyyandCodex 000107597e fix(accounts): preserve quota across OAuth reauthorization
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>
2026-11-23 17:08:45 +08:00
e41fdfc1c5 fix(accounts): set API key account names once during import (#770)
Use the optional name from account settings and default unnamed key accounts to 密钥账号. Keep connection fields independent of naming.

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-23 12:16:40 +08:00
5fced665bf fix(openai): preserve session bindings during image account fallback (#769)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-23 11:53:40 +08:00
7ff77413c8 fix(openai): respect response exclusions when reusing WebSockets (#768)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-23 11:45:03 +08:00
1ee67cd6b2 fix(openai): handle WebSocket size rejections during uploads (#767)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-23 11:12:23 +08:00
ZyyandCodex 58cbb60750 fix(accounts): move CPR link detection to the quota card
Co-authored-by: Codex <noreply@openai.com>
2026-11-22 01:02:28 +08:00
aa34d5291d fix(accounts): preserve quota forecast totals through reset time jitter (#760)
* fix(accounts): preserve quota forecast totals through reset time jitter

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

* fix(accounts): confirm quota cycle changes before trimming usage

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-21 21:52:12 +08:00
Zyy a1954c4746 fix(openai): limit request country overrides to Codex OAuth
Preserve the incoming request country on API key routes. Show quota refresh only for supported accounts and keep peer discovery in the account menu.

Clarify the policy scope in settings and tighten shared help icon spacing.

Refs #758
2026-11-21 18:37:59 +08:00
Zyy 5a4f49036b feat(frontend): share model access controls and separate request country settings
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.
2026-11-21 11:52:45 +08:00
0df6c40091 fix(openai): require replay for HTTP continuations after SSE fallback (#756)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 22:20:56 +08:00
ZyyandCodex b02f13c9cc refactor(admin)!: remove legacy management API fields
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>
2026-11-20 21:38:58 +08:00
ZyyandCodex 878d2858e8 fix(settings)!: require Guardian model and request country on updates
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>
2026-11-20 21:04:35 +08:00
ZyyandCodex 369f17d654 fix(openai): preserve account and Guardian header precedence
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 21:02:57 +08:00
Zyy 3709ed2484 feat(openai): align Codex Guardian routing and request country (#754) 2026-11-20 20:14:00 +08:00
Zyy 6fc6283f3a fix(gateway): link successful replays to incomplete continuations 2026-11-20 17:30:24 +08:00
1bf948a24f feat(keys): add usage statistics and manual budget window alignment (#752)
* feat(keys): add usage statistics and manual budget window alignment

* fix(keys): retain dialog focus when retrying usage statistics

* fix(store): exclude pricing scenarios from missing cost detection

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-20 17:04:16 +08:00
Zyy d90b9d129e fix(openai): omit unreferenced item IDs from replayed text messages 2026-11-20 15:42:02 +08:00
ZyyandCodex 4b1cae89b2 feat(admin): add image model shortcut to account allowlists
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 14:46:28 +08:00
ZyyandCodex 6cfe7ce2fc feat(admin): add account group policies and bulk API key editing (#751)
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 14:39:30 +08:00
ZyyandCodex 1427dfc64a feat(openai): set request country from the configured location
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 12:25:27 +08:00
6420d86aa6 fix(openai): expire access tokens revoked during quota refresh (#750)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 11:02:57 +08:00
0922f3486c fix(responses): return HTTP 400 for early WebSocket request errors (#746)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-19 16:59:11 +08:00
ZyyandCodex f4058c1d2e test: align backend coverage with current behavior
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>
2026-11-19 15:56:12 +08:00
Zyy 8253fbc497 fix(errors): show specific causes in admin feedback and request records 2026-11-19 15:41:32 +08:00
Zyy 843e1367bd docs: streamline guides and clarify current behavior 2026-11-19 14:49:42 +08:00
ZyyandCodex ab1bf4372c fix(api): apply the CLI version gate to Desktop-hosted TUI clients
Co-authored-by: Codex <noreply@openai.com>
2026-11-19 14:15:35 +08:00