1024 Commits
Author SHA1 Message Date
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
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 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
ZyyandCodex f8fa386a7e fix(admin): simplify account error messages
Co-authored-by: Codex <noreply@openai.com>
2026-11-20 10:43:53 +08:00