Commit Graph
1031 Commits
Author SHA1 Message Date
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 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 74ac905abf test(openai): borrow quota window attribution in assertions
Co-authored-by: Codex <noreply@openai.com>
2026-11-26 11:54:18 +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 d7761910bb fix(plugin): synchronize privacy action service contract
Co-authored-by: Codex <noreply@openai.com>
2026-11-25 21:51:09 +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 7712093dac refactor(db): consolidate unreleased account migrations
Co-authored-by: Codex <noreply@openai.com>
2026-11-25 19:49:25 +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 7e32ba5dc0 test(openai): prevent proxy port reuse in parallel tests
Co-authored-by: Codex <noreply@openai.com>
2026-11-25 16:36:43 +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
ZyyandCodex 242929983a fix(websocket): report expired upstream control bindings
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>
2026-11-25 11:50:29 +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 037cbcd605 fix(deps): upgrade cookie to 0.18.3
Raise the OpenAI provider dependency floor and lock the patched release for RUSTSEC-2026-0594.

Co-authored-by: Codex <noreply@openai.com>
2026-11-23 18:12:40 +08:00
ZyyandCodex 89362e54b2 test(store): allow idle rounds while verifying analytics reset progress
Wait for a committed reset batch under lock contention and verify the injected cursor-write error before checking rollback.

Co-authored-by: Codex <noreply@openai.com>
2026-11-23 18:09:33 +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
dependabot[bot]andCodex 939ae78c8c chore(deps): upgrade jsonwebtoken to 12.0.0 (#764)
Upgrade jsonwebtoken to 12.0.0 and adapt the xAI OIDC test fixture
to the fallible HMAC key constructor.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-23 10:58:03 +08:00
dependabot[bot]andCodex 3039709f36 chore(deps): update backend dependencies and patch url (#763)
Update the backend dependency group, migrate the stale-lock fixture to
std::fs::set_times, and lock url 2.5.9 to resolve RUSTSEC-2026-0592.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-11-23 10:57:45 +08:00
Wei HUandCodex d1be306f03 test(api): isolate virtual time from idle WebSocket I/O (#761)
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>
2026-11-21 22:51:47 +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
ZyyandCodex 5b37b574e6 refactor(store): consolidate unreleased database migrations
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 22:27:41 +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 48a5c9d690 fix(openai): preserve credential errors during model catalog refresh 2026-11-20 17:30:24 +08:00