1623 Commits
Author SHA1 Message Date
Chenyme 8535932b07 Update README.zh-CN.md 2026-11-11 17:18:16 +08:00
Chenyme e21d5ac41f Update README.md 2026-11-11 17:17:36 +08:00
Chenyme e2fd7ab481 Merge pull request #1088 from chenyme/fix_CVE
chore: update Dockerfile and Go modules, upgrade frontend dependencies and pnpm lock file
v3.1.8
2026-10-22 11:13:03 +08:00
Chenyme 87407fe101 fix(tunnelproxy): update ECDHE key share handling in Reality handshake for compatibility with utls v1.8 2026-10-22 10:52:28 +08:00
Chenyme 31e660bc72 chore: update Dockerfile and Go modules, upgrade frontend dependencies and pnpm lock file 2026-10-22 10:37:23 +08:00
Chenyme 9d77b4d475 Merge pull request #1087 from chenyme/console
chore: bump version to v3.1.8 and implement Console accounts
2026-10-21 19:48:32 +08:00
Chenyme f18624b17d fix(console): improve parsing logic for console usage status and add tests for edge cases 2026-10-21 19:43:49 +08:00
Chenyme eaca3d0e11 fix(console): add bounds checking for budgetCents in parseConsoleUsageStatus and enhance related tests 2026-10-21 19:33:06 +08:00
Chenyme 838aca3c8f chore: bump version to v3.1.8 and implement auto-delete feature for unlinked Console accounts 2026-10-21 19:22:41 +08:00
Chenyme 3a794d9792 Merge pull request #1085 from Huan-zhaojun/pr/http2-protocols-go127
fix(test): accept Transport.Protocols as HTTP/2 switch on Go 1.27
2026-10-21 19:18:10 +08:00
Huan-zhaojun a23e465483 fix(test): accept Transport.Protocols as HTTP/2 switch on Go 1.27 2026-10-21 11:46:24 +08:00
Chenyme e03cacb9d1 docs: update README.md v3.1.7 2026-10-18 10:28:22 +08:00
Chenyme 4e220e815c feat: implement transient retry tracking and enhance related tests 2026-10-18 10:27:06 +08:00
Chenyme 7ad0f791f0 Merge pull request #1073 from carfeii/fix/voice-ws-timeout-and-stt-billing
fix(voice-ws): observe request timeout and bill confirmed STT duration regardless of transport outcome
2026-10-16 15:32:09 +08:00
Chenyme 716d8475f2 Merge branch 'main' into fix/voice-ws-timeout-and-stt-billing 2026-10-16 15:18:38 +08:00
Chenyme dbd1a29fda fix: enhance request timeout handling to distinguish between cancellation and deadline expiration 2026-10-16 15:18:24 +08:00
Chenyme b776de3017 Merge pull request #1070 from aijiesd520/feat/auto-disable-degraded-accounts
feat(gateway): support auto-disabling degraded accounts with management UI switch
2026-10-16 14:51:26 +08:00
Chenyme c9c3e7ddb2 Merge branch 'main' into feat/auto-disable-degraded-accounts 2026-10-16 14:39:45 +08:00
Chenyme 659ee8ca69 refactor: enhance request retry configuration and auto-disable logic; update documentation and tests for clarity 2026-10-15 13:44:11 +08:00
Chenyme 1188c55c9b Merge pull request #1069 from aijiesd520/feat/legacy-http-proxy
feat(egress): support legacy authenticated HTTP proxy format (ip:port:user:pass)
2026-10-15 11:39:53 +08:00
Chenyme 837993aa02 Merge branch 'main' into feat/legacy-http-proxy 2026-10-15 11:32:34 +08:00
Chenyme 0a3efcc459 feat: enhance proxy URL normalization and test logic 2026-10-15 11:32:17 +08:00
Chenyme 199b3abecc Merge pull request #1067 from carfeii/fix/video-retry-account-scope-bypass
fix: video job retry can bypass client key account scope
2026-10-15 11:18:14 +08:00
Chenyme 1e434d1d3d Merge branch 'main' into fix/video-retry-account-scope-bypass 2026-10-15 11:10:12 +08:00
Chenyme 6cd06ea5e7 fix: add recovery test for video job on worker shutdown 2026-10-15 11:10:00 +08:00
Chenyme bc05e1d5ca Merge pull request #1065 from Solaris-star/oss/1064-a88cd8808c
fix(gateway): cool down Build accounts after unknown 403
2026-10-15 10:06:18 +08:00
Chenyme 47810328db Merge pull request #1062 from noodledon/fix/sso-build-consent-token
fix(web): fetch consent_token and send browser form headers in SSO→Bu…
2026-10-15 01:31:12 +08:00
Chenyme 9fce943981 Merge branch 'main' into pr/1062 2026-10-15 01:25:37 +08:00
Chenyme d0e19205af Merge pull request #1060 from fengshao1227/fix/device-consent-token
fix(web): device approve 带上 consent_token,修复 convert-to-build 403
2026-10-15 00:52:46 +08:00
Chenyme 23793f3e0d fix: ensure requestId is included in Imagine websocket responses for accurate event handling 2026-10-15 00:46:28 +08:00
Chenyme bedc88feb6 feat: enhance SSO flow with consent token handling and cookie management 2026-10-15 00:09:31 +08:00
Chenyme 16143fb695 Merge branch 'main' into fix/device-consent-token 2026-10-14 23:35:04 +08:00
Chenyme 59722570db Merge pull request #1056 from volcanolin/fix/ws-imagine-request-id-matching
fix(web): filter imagine websocket events by requestId to prevent stale gallery frame crosstalk
2026-10-14 23:34:17 +08:00
Chenyme 2f29773bed fix: refine requestId filtering in imagine collector to enhance image handling 2026-10-14 23:28:01 +08:00
Chenyme 1fe474442b Merge branch 'main' into fix/ws-imagine-request-id-matching 2026-10-14 23:15:42 +08:00
carfeii 6ea58d3a89 fix(voice-ws): observe request timeout and bill confirmed STT duration regardless of transport outcome
Two issues in the voice/STT WebSocket proxy:

1. The established proxy never watched c.Request.Context().Done(), so
   server.requestTimeout had no effect on a quiet, already-admitted
   session: the account lease, concurrency slot, and upstream connection
   stayed open past the configured deadline until a transport error
   occurred on either side. Added a watcher that closes the session once
   the request context is canceled, extracted as watchRequestTimeout so
   it is unit-testable without a real WebSocket upgrade.

2. STT billing was gated on the downstream client closing cleanly
   (successful == ErrorCode == ""), even though the cost is already
   incurred the moment the upstream sends a confirmed transcript.done
   duration. A client that received a complete transcription and then
   disconnected abnormally left EstimatedCostInUSDTicks at zero,
   understating usage against the key's billing limit. Billing is now
   keyed on having a confirmed duration, not on how the transport ended.
2026-10-05 18:21:45 +08:00
inter b789e8466d feat(settings): support auto-disable degraded accounts in management UI and filter bound accounts by ID 2026-10-04 22:22:31 +08:00
inter 6c19399527 feat(gateway): auto-disable degraded accounts 2026-10-04 22:22:31 +08:00
inter ea563c31ce feat(egress): support legacy authenticated HTTP proxy format 2026-10-04 22:12:27 +08:00
carfeii 31bbe64dc9 fix: video job retry can bypass client key account scope
Every other account-selection path (text chat, image generation, voice,
voice websocket) threads the requesting client key's AccountScope through
to beginSelectionSessionForKey. The video job's background retry/recovery
worker (runVideoJob) used the unscoped beginSelectionSession instead, so
once the job's originally pinned account failed, the fallback search for a
replacement ignored the client key's provider/tier restrictions entirely.

A client key restricted to e.g. Super-tier accounts could end up consuming
a Free-tier (or wrong-provider) account's quota purely because its pinned
account hit a transient failure, silently widening access beyond what the
key was configured to allow.

media.Job already stores ClientKeyID, so the fix looks up that key and
passes its AccountScope into beginSelectionSessionForKey, matching every
other selection path. Added a regression test
(TestVideoRetryDoesNotEscapeClientKeyAccountScope) that fails against the
prior code (confirmed: the out-of-scope account was used) and passes with
the fix.
2026-09-30 15:26:04 +08:00
Chenyme 7c889a960e docs: update README.md 2026-09-30 12:24:40 +08:00
Solaris-star a88cd8808c fix(gateway): cool down Build accounts after unknown 403 2026-09-29 17:02:07 +08:00
noodledon cfc5865df7 fix(web): fetch consent_token and send browser form headers in SSO→Build device flow
xAI's device approval now renders a consent page on accounts.x.ai
containing a hidden consent_token JWT, and POSTs to
auth.x.ai/oauth2/device/approve without it — or without the
Origin/Referer/Sec-Fetch headers a real form submit carries — return
403 'Request could not be verified'. Web→Build conversion failed for
every account.

After the verify 303, GET the consent page, scrape consent_token, and
POST it back with browser-style navigation headers. Verified live
against auth.x.ai: approve now 303s to /oauth2/device/done and the
token endpoint returns access+refresh tokens.
2026-09-26 17:05:58 +08:00
li abc5c294f9 fix(web): device approve 带上 consent_token,修复 convert-to-build 403
xAI 在 device 授权流程新增了一次性 consent_token(ES256 JWT, typ=consent+jwt),
放在 /oauth2/device/consent 页面里,approve 必须回传,否则 403
"Request could not be verified"。旧流程没取这个令牌,导致 SSO→Build 全部换不出。

verify 之后 GET consent 页面解析 consent_token,再随 approve 一起提交。
2026-09-25 20:37:20 +08:00
volcanolin 8038dca603 fix(web): filter imagine websocket events by requestId to prevent stale gallery frame crosstalk 2026-09-22 15:44:49 +08:00
Chenyme 5e5ad75556 Merge pull request #1054 from chenyme/grok_build_1.0.40
feat: align Grok Build 1.0.40 headers and catalog-driven reasoning menus
2026-09-22 01:28:04 +08:00
Chenyme 9dda42ae41 feat: align Grok Build 1.0.40 headers and catalog-driven reasoning menus 2026-09-22 01:17:29 +08:00
Chenyme 906b9493b0 chore: bump version to v3.1.6 v3.1.6 2026-09-16 10:00:31 +08:00
Chenyme 50c09e26db Merge pull request #1046 from lij768423-svg/fix/short-usage-inflated-dumps
fix: withhold vis<8 and plaintext-ratio dumps; count streamed visible only
2026-09-16 09:58:57 +08:00
Chenyme 62d0e81ee4 Merge branch 'main' into fix/short-usage-inflated-dumps 2026-09-16 09:55:05 +08:00