dependabot[bot]
2aca8fb79b
chore(deps): bump the minor-and-patch group across 1 directory with 3 updates ( #48 )
...
Bumps the minor-and-patch group with 3 updates in the /backend directory: [syn](https://github.com/dtolnay/syn ), [uuid](https://github.com/uuid-rs/uuid ) and [aws-sdk-s3](https://github.com/awslabs/aws-sdk-rust ).
Updates `syn` from 3.0.3 to 3.0.4
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/3.0.3...3.0.4 )
Updates `uuid` from 1.24.1 to 1.26.0
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.24.1...v1.26.0 )
Updates `aws-sdk-s3` from 1.142.0 to 1.144.0
- [Release notes](https://github.com/awslabs/aws-sdk-rust/releases )
- [Commits](https://github.com/awslabs/aws-sdk-rust/commits )
---
updated-dependencies:
- dependency-name: aws-sdk-s3
dependency-version: 1.144.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: minor-and-patch
- dependency-name: syn
dependency-version: 3.0.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
- dependency-name: uuid
dependency-version: 1.26.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: minor-and-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-31 11:13:35 +08:00
Zyy and Codex
56451601fb
feat(observability): enrich error request traces
...
Expose request, client, model, transport, and account facts in operations errors and surface them in the error table and detail view.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 10:57:53 +08:00
Zyy and Codex
4d53ef6068
fix(openai): recover premature websocket closes
...
Pin the selected account and retry over HTTP/SSE when a new-chain WebSocket fails before downstream delivery.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 10:57:35 +08:00
Zyy and Codex
a62bb196f7
fix(accounts): proxy profile avatars through backend
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 09:56:23 +08:00
Zyy and Codex
37cd059531
fix(openai): normalize HTTP previous response errors
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 04:22:11 +08:00
Zyy and Codex
c46910df22
fix(observability): restore direct page navigation
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 04:09:31 +08:00
Zyy and Codex
75e22d7a5b
fix(openai): harden downstream websocket delivery
...
Move downstream socket ownership into a bounded pump, preserve official Codex control-frame behavior, and bound downstream writes.
Enforce the official connection lifetime after active terminal delivery, add structured transport diagnostics, and mirror connection/protocol coverage under the test tree without adding stream_id.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 03:27:11 +08:00
Zyy and Codex
6b2d335bc5
fix(observability): align completed usage projections
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:58:16 +08:00
Zyy and Codex
270b1540cb
perf(observability): bound retention cleanup cycles
...
Rotate bounded deletion batches across retained tables with row, batch, duration, and pacing budgets. Report per-cycle progress, honor worker cancellation, and leave rollups or parallel writer lanes behind measured production thresholds.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:40:40 +08:00
Zyy and Codex
660214d9a5
refactor(store): simplify PostgreSQL lifecycle reads
...
Reuse the direct runtime-settings read for the single-row control-plane path, collapse repeated provider snapshot lookups in request lifecycle writes, and remove the unused credential revision vector surface.
No schema migration is added because no candidate crossed the EXPLAIN and write-amplification gate.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:40:40 +08:00
Zyy and Codex
2231fee768
perf(observability): narrow usage and ops read models
...
Separate Usage list and detail reads, use keyset paging with first-page totals, push Ops predicates into source branches, and merge repeated account and diagnostics aggregates. Apply the shared per-query PostgreSQL budget, coalesce identical Dashboard windows, and preserve the existing IP, User-Agent, and latency detail surface.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:40:40 +08:00
Zyy and Codex
a2e60c1c6e
refactor(admin): page account read models in PostgreSQL
...
Move account, account-group, and client-key filtering, stable ordering, counts, and current-page membership reads into PostgreSQL. Keep Redis cooldown and lease enrichment in the Admin application boundary, share stable page state in the UI, and supervise client-key last-used flushing through the host worker lifecycle.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:40:40 +08:00
Zyy and Codex
fc388bb799
refactor(providers): bound credential refresh queries
...
Move refresh candidate filtering, ordering, exclusions, and limits into one PostgreSQL query for OpenAI and xAI. Keep refresh policy in each provider and preserve the final credential revision fence without adding a scheduling cache or catalog table.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:34:49 +08:00
Zyy and Codex
62a35c3960
feat(store): add PostgreSQL connection guardrails
...
Raise the recommended pool default, reserve data-plane capacity dynamically, configure PostgreSQL session timeouts, isolate migrations, and add a fair per-query budget primitive with regression coverage.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:34:32 +08:00
Zyy and Codex
82653544ac
perf(observability): eliminate attempt metrics temp spill
...
Materialize only the narrow request facts shared by the request and ops aggregates, then compute each aggregate once. This removes repeated scans of the wide model_requests CTE while preserving usage-fact cost coverage.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:34:21 +08:00
Zyy and Codex
f10f825404
fix(observability): correct provider failure semantics
...
Count provider request, attempt, and failure facts across the full execution audit while restricting token totals to completed usage facts. Add a PostgreSQL regression assertion for the mixed success/failure boundary.
Co-authored-by: Codex <noreply@openai.com >
2026-08-31 02:34:21 +08:00
Zyy and Codex
a268f5ca66
fix(observability): restore WebSocket usage records
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-30 22:40:16 +08:00
Zyy and Codex
d4855cca9c
feat(observability): expose runtime pressure insights
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-30 00:46:01 +08:00
Zyy and Codex
4830ef093b
refactor(architecture): remove obsolete compatibility scaffolding
...
Remove orphaned fixtures, unused capability and resource branches, and stale credential APIs.
Retire legacy Usage metadata fallbacks and record the completed cleanup.
Co-authored-by: Codex <noreply@openai.com >
2026-08-29 22:08:34 +08:00
Zyy and Codex
ad20064d15
fix(admin): unify control-plane error responses
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-29 20:22:14 +08:00
Zyy and Codex
57422275bb
feat(accounts): add official profile statistics
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-29 02:36:45 +08:00
Zyy
cb7f69850b
feat(openai): add session affinity observability
2026-08-28 02:20:55 +08:00
Zyy and Codex
5ea3740de3
refactor(openai): remove agent identity support
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-27 13:27:10 +08:00
Zyy
d804bca495
fix(openai): strip unsupported Codex request fields
2026-08-27 01:51:30 +08:00
Zyy and Codex
ca527d5833
fix(accounts): use personal usage reports only
...
Remove the workspace token-breakdown probe and its dedicated statistics mode so usage aggregation always uses the personal model-credit and token-total reports.
Drop the invariant mode field from provider projections, the admin response, and the account usage UI.
Co-authored-by: Codex <noreply@openai.com >
2026-08-26 11:31:55 +08:00
Zyy and Codex
5d97086511
feat(accounts): add official usage statistics
...
Fetch Codex cycle usage in the provider, calculate model and daily Token costs with the shared OpenAI pricing rules, and expose the result through the admin API.
Add the account usage statistics modal, structured loading state, and feature-scoped quota components.
Co-authored-by: Codex <noreply@openai.com >
2026-08-26 00:46:53 +08:00
Zyy and Codex
0e6da1e731
refactor: consolidate migration baseline and remove design source
...
Fold the nullable requested-model change into the initial migration and keep the frozen manifest and project guidance aligned.
Remove the staged Pen design source.
Co-authored-by: Codex <noreply@openai.com >
2026-08-25 17:53:29 +08:00
dependabot[bot]
d22c1d4ab9
chore(deps): bump the minor-and-patch group in /backend with 4 updates ( #44 )
...
Bumps the minor-and-patch group in /backend with 4 updates: [uuid](https://github.com/uuid-rs/uuid ), [aws-sdk-s3](https://github.com/awslabs/aws-sdk-rust ), [aws-smithy-runtime-api](https://github.com/smithy-lang/smithy-rs ) and [redis](https://github.com/redis-rs/redis-rs ).
Updates `uuid` from 1.24.0 to 1.24.1
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.24.0...v1.24.1 )
Updates `aws-sdk-s3` from 1.141.0 to 1.142.0
- [Release notes](https://github.com/awslabs/aws-sdk-rust/releases )
- [Commits](https://github.com/awslabs/aws-sdk-rust/commits )
Updates `aws-smithy-runtime-api` from 1.14.0 to 1.15.0
- [Release notes](https://github.com/smithy-lang/smithy-rs/releases )
- [Changelog](https://github.com/smithy-lang/smithy-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/smithy-lang/smithy-rs/commits )
Updates `redis` from 1.5.0 to 1.6.0
- [Release notes](https://github.com/redis-rs/redis-rs/releases )
- [Commits](https://github.com/redis-rs/redis-rs/compare/redis-1.5.0...redis-1.6.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-version: 1.24.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
- dependency-name: aws-sdk-s3
dependency-version: 1.142.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: minor-and-patch
- dependency-name: aws-smithy-runtime-api
dependency-version: 1.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: minor-and-patch
- dependency-name: redis
dependency-version: 1.6.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: minor-and-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-25 15:36:39 +08:00
Zyy and Codex
f25edadd5f
fix(ci): keep OpenAI regression tests out of sources
...
Move the thread-spawn transport identity regression behind the public initialized-provider boundary so production source files remain free of embedded test modules.
Co-authored-by: Codex <noreply@openai.com >
2026-08-25 15:27:28 +08:00
Zyy and Codex
4f50c67332
fix(openai): preserve root session account affinity
...
Share the preferred account across derived child executions while keeping their continuation and WebSocket transport identities isolated.
Claim and migrate affinity atomically, clear account-bound state on fallback, reject cross-account previous-response continuations, and preserve complete replay transcripts.
Co-authored-by: Codex <noreply@openai.com >
2026-08-25 14:22:36 +08:00
Zyy and Codex
75f9d2a290
fix(openai): remove websocket pool slot caps
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-25 11:22:07 +08:00
Zyy and Codex
fbd922117e
fix(accounts): return persisted OAuth account ID
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-22 19:37:03 +08:00
Zyy and Codex
80f338ce01
fix(admin): show raw account counts
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-21 23:12:54 +08:00
Zyy and Codex
a23bfca848
fix(admin): normalize OAuth credential formats
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-21 14:57:16 +08:00
Zyy and Codex
a33637a99e
fix(openai): use Codex image endpoint paths
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-21 13:02:40 +08:00
Zyy and Codex
b0fe132736
docs: refresh architecture and project guides
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-21 01:01:07 +08:00
Zyy and Codex
e2c75d1054
feat(admin): add direct token import and polish displays
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-21 00:33:26 +08:00
Zyy and Codex
94f298927d
feat(openai): add active quota reset credits
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-21 00:33:21 +08:00
Zyy and Codex
3be827204f
fix(openai): keep image routes model-agnostic
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-20 19:05:14 +08:00
Zyy and Codex
227a1174b9
feat(openai): proxy image generation and edits
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-20 17:41:15 +08:00
Zyy and Codex
c0defcb6df
fix(admin): prefer account-wide dashboard quota
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-20 16:06:05 +08:00
Zyy and Codex
7f420257a6
fix(api): keep provider degradation out of healthz
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-20 15:14:28 +08:00
Zyy and Codex
4f85209dc9
fix(config): centralize runtime data paths
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-20 15:14:28 +08:00
Zyy and Codex
cd89e2e8fc
fix(admin): align quota metadata and usage layout
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-20 15:14:28 +08:00
Zyy and Codex
61788804b4
fix(openai): recover cross-account websocket continuations
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-19 23:40:40 +08:00
Zyy and Codex
2751ea6aa4
fix(openai): preserve cross-account session recovery
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-19 23:05:48 +08:00
Zyy and Codex
58fe66789c
chore(deps): bump h2 to 0.4.16
...
Resolve RUSTSEC-2026-0258 reported by cargo audit.
Co-authored-by: Codex <noreply@openai.com >
2026-08-19 11:34:07 +08:00
Zyy and Codex
573b6b26db
fix(openai): isolate quota buckets by limit id
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-18 16:48:37 +08:00
Zyy and Codex
b26d3b386a
fix(admin): align quota diagnostics and usage layout
...
Co-authored-by: Codex <noreply@openai.com >
2026-08-17 20:00:29 +08:00
dependabot[bot]
72f8957163
chore(deps): bump the minor-and-patch group in /backend with 5 updates
...
Bumps the minor-and-patch group in /backend with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [thiserror](https://github.com/dtolnay/thiserror ) | `2.0.19` | `2.0.20` |
| [async-trait](https://github.com/dtolnay/async-trait ) | `0.1.91` | `0.1.92` |
| [futures](https://github.com/rust-lang/futures-rs ) | `0.3.33` | `0.3.34` |
| [aws-smithy-types](https://github.com/smithy-lang/smithy-rs ) | `1.6.1` | `1.6.2` |
| [cookie](https://github.com/SergioBenitez/cookie-rs ) | `0.18.1` | `0.18.2` |
Updates `thiserror` from 2.0.19 to 2.0.20
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.19...2.0.20 )
Updates `async-trait` from 0.1.91 to 0.1.92
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.91...0.1.92 )
Updates `futures` from 0.3.33 to 0.3.34
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.33...0.3.34 )
Updates `aws-smithy-types` from 1.6.1 to 1.6.2
- [Release notes](https://github.com/smithy-lang/smithy-rs/releases )
- [Changelog](https://github.com/smithy-lang/smithy-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/smithy-lang/smithy-rs/commits )
Updates `cookie` from 0.18.1 to 0.18.2
- [Changelog](https://github.com/rwf2/cookie-rs/blob/0.18.2/CHANGELOG.md )
- [Commits](https://github.com/SergioBenitez/cookie-rs/compare/0.18.1...0.18.2 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-version: 2.0.20
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
- dependency-name: async-trait
dependency-version: 0.1.92
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
- dependency-name: futures
dependency-version: 0.3.34
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
- dependency-name: aws-smithy-types
dependency-version: 1.6.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
- dependency-name: cookie
dependency-version: 0.18.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor-and-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-08-17 14:05:19 +08:00