Commit Graph
2167 Commits
Author SHA1 Message Date
ZyyandCodex 2bb7679b1b docs: align project guidance with current gateway contracts
Clarify provider ownership and compatibility decisions in the development workflow. Document the active API, SDK, deployment and migration contracts, and keep version history in release notes.

Co-authored-by: Codex <noreply@openai.com>
2026-12-06 13:29:24 +08:00
ZyyandCodex f2c1de1568 fix(backend): apply provider capabilities across shared gateway paths
Use account-scoped model capabilities for discovery and routing. Let each provider project external prices and declare which credentials support quota refresh. Share alias resolution and preserve xAI adapter and account affinity decisions.

Align OAuth flow handling, protocol feature detection, Retry-After parsing, and plugin package and stream validation with their owning contracts.

Co-authored-by: Codex <noreply@openai.com>
2026-12-06 13:06:53 +08:00
ZyyandCodex a77d38dd77 refactor(antigravity)!: move account query policy into the provider
Keep account-change dispatch shared and let each provider own its settings and quota query targets. Reuse verified account catalogs on credential changes and clarify provider ownership in the development guide.

BREAKING CHANGE: settings clients must use the provider-scoped settings map. Migration 0055 discards the RC Antigravity refresh preference and restores the provider default.

Co-authored-by: Codex <noreply@openai.com>
2026-12-06 12:44:09 +08:00
github-actions[bot] 9a14263f1a chore(release): update release channels to 3.62.1-rc.2 2026-12-05 18:54:05 +00:00
ZyyandCodex 177679a13c chore: bump version to 3.62.1-rc.2
Co-authored-by: Codex <noreply@openai.com>
v3.62.1-rc.2
2026-12-06 02:33:53 +08:00
ZyyandCodex 195c51c06c refactor(db): consolidate unreleased account migrations
Co-authored-by: Codex <noreply@openai.com>
2026-12-06 02:31:55 +08:00
745bd15d3d feat(antigravity): make account query refresh modes configurable (#856)
* feat(antigravity): make account query refresh modes configurable

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

* fix(antigravity): release exhausted accounts when quota windows expire

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

* fix(antigravity): apply quota exhaustion to upstream model groups

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

---------

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-06 02:25:36 +08:00
3170b92d47 feat(accounts): schedule daily shifts for accounts and groups (#855)
* feat(accounts): schedule daily shifts for accounts and groups

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

* fix(accounts): keep off-shift sessions on their account by default

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

---------

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-05 23:50:08 +08:00
github-actions[bot] 8b40e707fd chore(release): update release channels to 3.62.1-rc.1 2026-12-05 07:59:21 +00:00
ZyyandCodex 15aabfc861 fix(release): restore GitHub release notes with channel-aware baselines
Co-authored-by: Codex <noreply@openai.com>
2026-12-05 15:50:18 +08:00
ZyyandCodex 0ebf6739e2 chore: bump version to 3.62.1-rc.1
Co-authored-by: Codex <noreply@openai.com>
v3.62.1-rc.1
2026-12-05 15:37:36 +08:00
ZyyandCodex b987cca4aa docs(release): base stable version bumps on changes since the last stable release
Co-authored-by: Codex <noreply@openai.com>
2026-12-05 15:36:01 +08:00
ZyyandCodex 72e82c565e fix(openai): clear only recovery feedback observed before success
Confirm the request still uses the current access token before resetting transient feedback across credential revisions. Track the latest 401 independently from Cloudflare streaks so an overlapping failure cannot suppress or be erased by a successful request.

Co-authored-by: Codex <noreply@openai.com>
2026-12-05 15:30:10 +08:00
47ccdeb737 fix(openai): preserve OAuth recovery and token rotation (#853)
* fix(openai): refresh OAuth tokens rejected before expiry

A 401 on a model request marked a refreshable OAuth account Expired when
its access token had not reached its expiry. Expired accounts are left out
of both selection and scheduled refresh, so the account stayed out of
rotation until it was refreshed by hand, even though the refresh token was
still valid.

Expire the rejected access token instead and let the OAuth worker renew
it, as quota refresh already does for token_revoked. A renewed token that
is rejected again before any successful request still marks the account
Expired.

Constraint: Accounts without a refresh token or a known expiry keep the existing Expired outcome
Rejected: Match the "status=503" text inside the 401 body | free-text matching, and other 401s on unexpired tokens would still strand the account
Rejected: Refresh on every 401 without a bound | an account whose renewed tokens keep failing would refresh in a loop
Confidence: high
Scope-risk: narrow
Tested: Rust 1.99.1 fmt --check; clippy -p provider-openai --all-targets --all-features -D warnings; provider-openai tests (1264 passed); the new selector case and the adapter case fail without the selector change
Not-tested: A live upstream 401 against this build; workspace-wide clippy and tests are left to CI

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(openai): preserve OAuth recovery across concurrent feedback

Report success from native endpoints and upstream adapters, and keep stale
responses from clearing the current OAuth recovery bound. Serialize model
401 and Cookie feedback with token refresh through the account lease.
Recheck credential revisions after acquiring scheduled and manual refresh
leases so a queued snapshot cannot resend an already rotated refresh token.

Cookie feedback skips writes while refresh owns the lease; a later response
can capture cookies without discarding successfully exchanged tokens.

Validated: workspace fmt and strict Clippy; 1265 provider-openai tests;
48 gateway architecture and bootstrap tests. Real upstream and store service
integration remain for live verification and CI.

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

* fix(openai): retain token recovery across cookie revisions

Use the access token and revision that were sent upstream to recognize a successful OAuth request after a concurrent cookie write. Keep account and quota recovery fenced by revision, and preserve newer rejection records and replies from superseded tokens.

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

* fix(openai): preserve account feedback across cookie writes

Reset consecutive Cloudflare failures on a successful request using the current access token. Keep quota and account state fenced by the response revision. A model 401 can shorten expiry while the cookie writer holds the refresh lease; a conflicting write is retried only for the same token.

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

* test(openai): separate risk counters from OAuth rejection

Verify that a successful request using the rejected token breaks a path-block streak without allowing a refreshed token to be rejected indefinitely.

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-05 14:00:11 +08:00
ZyyandCodex b20b0e2013 fix(release): freeze complete notes and expose backend validation
Co-authored-by: Codex <noreply@openai.com>
2026-12-05 02:09:06 +08:00
github-actions[bot] 16fc302d46 chore(release): update release channels to 3.62.0 2026-12-04 17:37:26 +00:00
ZyyandCodex 95c35d0a67 chore: bump version to 3.62.0
Co-authored-by: Codex <noreply@openai.com>
v3.62.0
2026-12-05 01:07:04 +08:00
ZyyandCodex 259a2e1ba0 fix(backend): enforce body limits and simplify contracts
Reject subsequent reads after outbound bodies exceed capacity, reuse Client Key cursor wire types, and simplify protocol fixtures.

Clarify current API contracts, module ownership, and local test setup.

Co-authored-by: Codex <noreply@openai.com>
2026-12-05 00:45:03 +08:00
ZyyandCodex 2f51412625 fix(openai): align continuation history with Codex wire items
Project known response items and nested content for history matching without changing forwarded payloads. Preserve client tool-result metadata and compare unknown variants verbatim.

Add version-pinned replay fixtures and multi-turn outbound regression coverage.

Co-authored-by: Codex <noreply@openai.com>
2026-12-05 00:21:17 +08:00
PINGBOZHOUandClaude Opus 5.5 32f3b11ddf fix(openai): price gpt-image-2.6 models (#850)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 00:19:59 +08:00
github-actions[bot] c2891e14ce chore(release): update release channels to 3.61.1-rc.6 2026-12-04 13:53:03 +00:00
ZyyandCodex b28eee6e18 chore: bump version to 3.61.1-rc.6
Co-authored-by: Codex <noreply@openai.com>
v3.61.1-rc.6
2026-12-04 21:29:59 +08:00
6bf182677a fix(antigravity): repair IDs for same-name parallel tools (#849)
Pair ID-less calls and results by tool name and GenAI ordering when
counts match. Preserve ambiguous groups and existing raw JSON fields.

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 21:21:02 +08:00
ZyyandCodex 8d4b0496e2 fix(openai): map unsupported none reasoning effort to low when available
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 20:40:14 +08:00
github-actions[bot] 9b08c3a50d chore(release): update release channels to 3.61.1-rc.5 2026-12-04 10:14:06 +00:00
ZyyandCodex f43e1f95c3 chore: bump version to 3.61.1-rc.5
Co-authored-by: Codex <noreply@openai.com>
v3.61.1-rc.5
2026-12-04 17:57:14 +08:00
21cf139c96 fix(openai): keep slow model catalog refreshes alive (#846)
Use a 30-second idle timeout for account retries and manual refreshes while keeping ordinary discovery bounded. Let the admin UI wait for these refreshes until completion or cancellation.

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 17:49:30 +08:00
ZyyandCodex 7d6e4cc4e7 fix(openai): limit model retry hints to scoped rate limits
Keep ordinary account cooldowns on their existing selection path, including peer accounts after quota synchronization.

Co-authored-by: Codex <noreply@openai.com>
2026-12-04 17:40:15 +08:00
ZyyandCodex 2ddcd7c936 feat(openai): track turn rate limits per account and model
Preserve session scheduling and retry hints while a model cools down. Show active model limits and their recovery times in the account list.

Co-authored-by: Codex <noreply@openai.com>
2026-12-04 17:17:10 +08:00
ZyyandCodex c71e6176c5 fix(web): add a subtle surface to client import options
Give the tool row a persistent muted background and light shadow, and
increase the inset around the GitHub link.

Co-authored-by: Codex <noreply@openai.com>
2026-12-04 14:54:47 +08:00
ZyyandCodex 28d3e3c2cb fix(web): centralize page sizing and preserve PWA bottom spacing
Keep long pages naturally sized and share the available page height across
viewport-bound panels. Let list cards fill the remaining space while
preserving internal scrolling and pagination in short windows.

Co-authored-by: Codex <noreply@openai.com>
2026-12-04 14:54:46 +08:00
dd793a84ab fix(protocol): preserve tool semantics across Chat and Codex (#844)
Support named independent tool outputs and flatten custom grammar formats.
Adapt Codex search aliases, long call IDs and tool names while preserving
history pairing and restoring client-visible names in JSON and SSE.

Refs #843

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 14:13:31 +08:00
ZyyandCodex 5ed8b626d7 docs(skills): ground safeguards in expected behavior
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 13:33:50 +08:00
ZyyandCodex 96d8b25d0b fix(store): skip nested requests in key recovery and accept large limits
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 13:25:44 +08:00
Zyy a193de4eba fix(providers): align SSE history reuse with Codex and use disk for Antigravity artifacts 2026-12-04 13:07:26 +08:00
github-actions[bot] e296bef65e chore(release): update release channels to 3.61.1-rc.4 2026-12-04 04:09:54 +00:00
ZyyandCodex 89092272a1 docs(readme): add the Telegram community invite
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 11:49:02 +08:00
ZyyandCodex 09f3b39bbc chore: bump version to 3.61.1-rc.4
Co-authored-by: Codex <noreply@openai.com>
v3.61.1-rc.4
2026-12-04 11:37:01 +08:00
7591845f74 fix(openai): honor chat session affinity during account selection (#842)
Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 11:27:41 +08:00
ZyyandCodex 67ac8fd067 fix(deps): update DOMPurify to 3.5.1
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 11:14:27 +08:00
b232e367fc fix(openai): defer failed account catalog refresh with per-scope backoff (#839)
* fix(openai): defer failed account catalog refresh with per-scope backoff

* style: cargo fmt refresh.rs

* fix(openai): keep stale-catalog accounts probeable during refresh backoff

* fix(openai): schedule account catalog retries independently

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

---------

Co-authored-by: Zyy <zyycn@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
2026-12-04 11:02:02 +08:00
ZyyandCodex 0bdaa29907 fix(ui): clarify update actions and align dashboard empty state
Co-authored-by: Codex <noreply@openai.com>
2026-12-03 21:13:07 +08:00
github-actions[bot] cc798e33a1 chore(release): update release channels to 3.61.1-rc.3 2026-12-03 18:48:31 +08:00
ZyyandCodex 6eabda047c chore: bump version to 3.61.1-rc.3
Co-authored-by: Codex <noreply@openai.com>
v3.61.1-rc.3
2026-12-03 18:48:31 +08:00
ZyyandCodex 3c560b9276 fix(ui): unify account subscription badges
Use compact badges in the dashboard and switch account rows to a stacked layout when the card is narrow.

Co-authored-by: Codex <noreply@openai.com>
2026-12-03 17:59:10 +08:00
ZyyandCodex 77c42cea98 fix(antigravity): publish verified client profiles
Derive changelists from official client artifacts and publish them with the
matching version only after verification. Restore profiles from the shared
cache at startup and check release metadata hourly.

Filter gateway fingerprint status from OAuth requests and recognize structured
workspace policy denials without changing unrelated request data.

Co-authored-by: Codex <noreply@openai.com>
2026-12-03 17:44:09 +08:00
ZyyandCodex dd234c3619 fix(antigravity): preserve structured Google denials
Preserve RPC status, ErrorInfo reasons and retry hints across generation,
token counting and resource queries. Isolate confirmed account denials,
keep verification links in diagnostics, and preserve access state during
token refresh.

Cover in-band and streaming failures, background query suppression and
stale credential feedback with regression tests.

Refs #836

Co-authored-by: Codex <noreply@openai.com>
2026-12-03 16:07:12 +08:00
ZyyandCodex b5e691c63d fix(dashboard): animate incremental data updates
Preserve chart state across updates and animate capacity, status distribution, and account reordering. Keep metric transition values synchronized when reduced motion is enabled.

Co-authored-by: Codex <noreply@openai.com>
2026-12-03 14:50:05 +08:00
Zyy 2d0a52096a fix(workers): prioritize shutdown during background tasks 2026-12-03 13:56:18 +08:00
github-actions[bot] 47620e217a chore(release): update release channels to 3.61.1-rc.2 2026-12-03 05:16:01 +00:00