Commit Graph
315 Commits
Author SHA1 Message Date
Chenyme f8de8e1a78 Merge branch 'main' into pr/qualityguard-windows-permissions 2026-08-05 17:18:48 +08:00
Chenyme 2a320e69e6 fix: update console provider adapter initialization to include missing parameter 2026-08-05 17:14:13 +08:00
Chenyme d29d7ffc83 Merge branch 'pr/import-bare-array' of https://github.com/Huan-zhaojun/grok2api into pr/854 2026-08-05 17:09:01 +08:00
Chenyme a4405eda6a refactor: clarify import limit tests for console and build adapters 2026-08-05 17:08:37 +08:00
Chenyme 804b842382 Merge branch 'main' into pr/import-bare-array 2026-08-05 17:05:50 +08:00
Chenyme cd7d3cd3af fix: harden grouped routing queries and selection safety 2026-08-05 16:37:41 +08:00
Chenyme a05e06a20c feat: enhance console provider integration and improve quota handling for media routes 2026-08-05 16:25:25 +08:00
Chenyme 377710f4ae refactor: unify quota refresh handling and introduce console usage migration 2026-08-05 13:32:32 +08:00
Huan-zhaojun 75fa94f88c fix(test): skip POSIX permission assertions on Windows
Windows has no POSIX permission bits: os.WriteFile mode is ignored and
files report 0666-style permissions, so the 0600 assertions in the
qualityguard bootstrap and runtime-config tests always fail on Windows.
Skip them on Windows; POSIX behavior is unchanged.

(cherry picked from commit 0b9d0487b066472d33755c531b6f3f6a5c0da8ab)
2026-08-05 12:01:53 +08:00
Huan-zhaojun 1b58823af1 feat: support bare JSON array import for credential files
Accept top-level JSON arrays in credential import files, the common
export shape of batch registration tools.
- decoder: per-element validation with indexed errors, limit pre-check
- web/console: reserve '[' as JSON prefix, fix silent plain-text import
- sync: deterministic {"sso_token": ...} payload and UTF-8 guard

(cherry picked from commit 03ece5ab19df5a4cf3be4db31bbb4df450eab088)
2026-08-05 11:47:48 +08:00
Chenyme f1d51254db feat: align DPoP protocol, real usage quotas, and 24h recovery probing 2026-08-05 11:18:21 +08:00
Chenyme 56072a50b4 feat: support PostgreSQL connection URL from environment 2026-08-04 21:11:06 +08:00
Chenyme 0aa728bf95 fix: harden large account pool queries and candidate caching 2026-08-04 20:50:38 +08:00
Chenyme 5554c17b6a fix: preserve thinking token usage in Anthropic responses 2026-08-04 19:55:15 +08:00
Chenyme 3a5d855a5d Merge branch 'main' into model 2026-08-04 18:42:40 +08:00
Chenyme f996040784 feat: support Grok Build Composer discovery and protocol compatibility 2026-08-04 18:42:09 +08:00
Chenyme b3edc1f6ba Merge branch 'main' into enhance 2026-08-04 18:37:03 +08:00
Chenyme 719888292d Merge branch 'main' into feat/account-isolated-connections 2026-08-04 18:31:59 +08:00
Chenyme 810b3b4fbb feat: isolate upstream connection pools by account 2026-08-04 18:31:28 +08:00
Chenyme 8e0e9923fb feat: support session-sticky routing across duplicate model targets 2026-08-04 16:57:38 +08:00
buddhism5080 42b7556a5f feat(egress): isolate upstream TCP pools by account
Add a hot-reloadable routing switch so different accounts no longer share
the same upstream HTTP/TCP client pool, while the same account keeps
connection reuse. This helps upstream egress load balancers spread
traffic by connection across Build/Web/Console outbound calls.
2026-08-04 16:37:38 +08:00
Chenyme 7adc3927fd fix: handle fixed reasoning for Grok Console 4.20 2026-08-04 16:07:51 +08:00
Chenyme 3721babdcd fix: harden Grok Build 0.2.119 protocol compatibility 2026-08-04 15:42:59 +08:00
Chenyme 1d62978af3 Merge remote-tracking branch 'origin/main' into pr/837
# Conflicts:
#	backend/internal/application/gateway/failure_test.go
#	backend/internal/application/gateway/service.go
2026-08-04 14:54:16 +08:00
Chenyme 69e5fdd82f feat: integrate egress quality guard with managed identity and Compose 2026-08-04 14:48:50 +08:00
Chenyme 169b10fcaf Merge branch 'main' into feature/filter-proxy 2026-08-03 21:02:02 +08:00
Chenyme 89b4782556 feat: implement pagination and filtering for egress sources in account management 2026-08-03 21:01:41 +08:00
Chenyme 4bccb376be Merge branch 'main' into main 2026-08-03 17:49:17 +08:00
Chenyme b4c7baabb7 feat: enhance Build account detection with improved error classification and handling 2026-08-03 17:42:42 +08:00
Chenyme 8054880212 Merge branch 'main' into pr/upload-filename-test-windows 2026-08-03 14:12:17 +08:00
lij768423-svg 334dbe0f01 fix: recover quality probes without bound accounts 2026-08-01 17:49:18 +00:00
lij768423-svg 982e9ba783 feat: harden quality guard proxy rotation 2026-08-01 16:45:26 +00:00
lij768423-svg fe762c58ef fix: match quality guard to panel TPS 2026-08-01 05:14:32 +00:00
lij768423-svg 137589c33c feat: add egress recovery and quality guard 2026-08-01 02:24:59 +00:00
WuxiVIP fc65a8d251 filter accounts by egress node or subscription source
feat: filter accounts by egress node or subscription source
The account list could only split proxy bindings into bound and unbound.
Operators troubleshooting one proxy exit or one subscription had no way to
see just the accounts sitting behind it.
The bound branch of the proxy-binding filter now opens a third menu level
listing every egress node and every subscription source that can serve the
current account pool, so the options re-scope as the list switches between
Grok Build, Web and Console.
The egress query value carries the narrowing: "node:<id>" and "source:<id>"
both mean bound, restricted to one node or to every node owned by one
subscription. Invalid targets are rejected as an invalid filter.
2026-07-30 15:34:35 +08:00
night2049 bcc6435f61 feat: improve Build account detection and routing failover 2026-07-30 01:21:27 +08:00
Huan-zhaojun 326d9aedad fix(test): make multipart filename assertion platform-independent
Part.FileName() applies filepath.Base, which is platform-dependent:
Windows treats backslash as a separator and strips the leading "a\",
while Linux returns the name unchanged. Compute the expectation with
filepath.Base as well so the assertion holds on both platforms.

Test-only change; sanitization coverage and Linux behavior unchanged.
2026-07-30 00:43:49 +08:00
Huan-zhaojun 6ec604c116 fix(media): fsync video temp file via read-write handle
CommitVideoUpload opened the temp file with os.Open (O_RDONLY) and
called Sync on it. POSIX allows fsync on read-only descriptors, but
Windows FlushFileBuffers requires a handle with write access, so
video upload commits failed with "Access is denied" on Windows.

Open the file O_RDWR instead (no O_TRUNC, contents untouched);
fsync semantics on POSIX are identical. Fixes the six Windows-only
media test failures; Linux behavior unchanged.
2026-07-29 21:15:52 +08:00
Chenyme ef10c4cb01 fix: allow manual retry of invalid Build credentials 2026-07-29 16:35:14 +08:00
Chenyme d21cc395f5 feat: enhance credential refresh error handling with detailed diagnostics 2026-07-29 16:04:13 +08:00
Chenyme 0d7eb82a45 Merge branch 'main' into fix/restore-egress-test-all 2026-07-29 15:18:30 +08:00
Chenyme 981f4cfef4 feat: implement batch clearance management and enhance egress operations validation 2026-07-29 15:17:59 +08:00
Chenyme f3fb40f182 Merge branch 'main' into codex/web-video-upstream-diagnostics 2026-07-29 14:37:56 +08:00
Chenyme 35f4f11534 feat: enhance filename sanitization and logging for web media uploads 2026-07-29 14:37:13 +08:00
Chenyme cf68e41989 Merge branch 'main' into keys 2026-07-29 14:05:24 +08:00
Chenyme fe03870a5a Merge branch 'main' into agent/build-proxy-pool-rotation 2026-07-29 14:01:04 +08:00
put-go 630f6d0fc7 fix: restore egress bulk testing and controls 2026-07-28 22:24:09 +08:00
Chenyme 2e0a170058 Merge branch 'main' into agent/build-free-quota-500k 2026-07-28 16:34:34 +08:00
Chenyme 5c32214549 Merge branch 'main' into agent/build-proxy-pool-rotation 2026-07-28 16:33:45 +08:00
Chenyme 29feab878d Merge branch 'main' into agent/account-batch-concurrency 2026-07-28 16:16:35 +08:00