1416 Commits
Author SHA1 Message Date
Chenyme 909bb8109f chore: bump version to v3.1.4 v3.1.4 2026-08-19 15:23:56 +08:00
Chenyme c9916f6581 Merge pull request #970 from chenyme/client_ip
feat: record trusted client IPs
2026-08-19 15:11:06 +08:00
Chenyme d76c74f407 feat: record trusted client IPs 2026-08-19 15:06:17 +08:00
Chenyme e7f6137dc0 Merge pull request #967 from lij768423-svg/feat/skip-tui-compaction-hold
fix: skip quality hold for Grok TUI compaction prompts
2026-08-19 13:58:35 +08:00
Chenyme d4fcb7334e Merge remote-tracking branch 'origin/main' into pr/967
# Conflicts:
#	backend/internal/application/gateway/quality_retry.go
#	backend/internal/application/gateway/quality_retry_test.go
#	backend/internal/application/gateway/responses_compaction.go
#	backend/internal/application/gateway/responses_compaction_test.go
2026-08-19 13:53:26 +08:00
Chenyme c0b870cbae fix: preserve Responses routing for Grok TUI compaction 2026-08-19 13:48:23 +08:00
Chenyme 990f533907 Merge pull request #966 from lij768423-svg/feat/missing-thinking-cooldown
feat: cool missing-thinking accounts and list them in quality guard
2026-08-19 11:54:11 +08:00
Chenyme 7867c13998 fix: make missing-thinking penalties durable 2026-08-19 11:47:57 +08:00
lij768423-svg 66fb439906 fix: skip quality hold for Grok TUI compaction prompts
TUI context compaction posts a normal /v1/responses turn whose last
user item is the grok-build summary prompt, not compaction_trigger.
Quality hold treated that as missing-thinking, withheld the stream,
and fail-closed after six long attempts. Detect the prompt on the last
input/message item, tag the request as compaction, and skip the hold
without rewriting the body into a Codex remote-v2 blob.
2026-08-19 11:42:50 +08:00
lij768423-svg 2ef3b0ac2f feat: cool missing-thinking accounts and list them in quality guard
First no-thinking withhold puts the account on a 24h scheduling
cooldown without disabling it. A later miss after that cooldown
expires disables the account. Quality-guard degrade-accounts now
includes quality_degraded retries as missing_thinking so operators
can see the rotated accounts.
2026-08-19 11:42:50 +08:00
Chenyme 0c51ca8bf1 Merge pull request #968 from lij768423-svg/feat/empty-hold-idle-sse
fix: do not fail-open empty held streams as HTTP 200
2026-08-19 11:06:49 +08:00
Chenyme 470b7c38ad fix: retry empty streams and emit protocol-safe terminal events 2026-08-19 10:59:54 +08:00
lij768423-svg 633cf9b73e fix: fill required Responses ids for Grok CLI serde
Idle abort still failed with missing field id because CLI requires
id on the event and on item/error objects, not only response.id.
Rewrite streamed Responses events to supply missing response/item
ids and emit a complete incomplete trailer.
2026-08-19 02:35:33 +08:00
lij768423-svg 48308eb402 fix: give abort trailers the response id Grok CLI requires
The empty-hold idle trailer emitted response.incomplete without id,
created_at, or sequence_number. Grok CLI serde then failed with
missing field id. Reuse the streamed response id when present and
always write a complete response object.
2026-08-19 02:11:57 +08:00
lij768423-svg 4940556056 fix: do not fail-open empty held streams as HTTP 200
Empty hold timeouts and upstream idle were delivered as 200 without a
terminal SSE event, so Sub2API wrapped them as 500. Keep waiting on a
0-token hold expire, treat idle as a retryable 504 instead of client
499, cool the hanging account, and write an SSE error + DONE when the
flush path is already committed.
2026-08-19 02:01:38 +08:00
lij768423-svg e3420857e9 fix: skip quality hold for Grok TUI compaction prompts
TUI context compaction posts a normal /v1/responses turn whose last
user item is the grok-build summary prompt, not compaction_trigger.
Quality hold treated that as missing-thinking, withheld the stream,
and fail-closed after six long attempts. Detect the prompt on the last
input/message item, tag the request as compaction, and skip the hold
without rewriting the body into a Codex remote-v2 blob.
2026-08-19 01:57:40 +08:00
Chenyme a4b33d47bf Merge pull request #965 from chenyme/egress
feat: improve proxy visibility and cross-provider setup
2026-08-18 23:46:15 +08:00
Chenyme 233aea53ed feat: enhance egress proxy profiles management with improved UI and functionality 2026-08-18 23:40:41 +08:00
Chenyme 5bbbf537b8 feat: add scalable shared proxy configurations 2026-08-18 23:11:54 +08:00
Chenyme dc307b3dcf feat: improve proxy visibility and cross-provider setup 2026-08-18 20:58:23 +08:00
Chenyme 6fca62e47e Merge pull request #964 from chenyme/refresh
fix: harden Build OAuth credential refresh recovery
2026-08-18 20:18:10 +08:00
Chenyme 2a4537efd5 Merge branch 'main' into refresh 2026-08-18 20:12:55 +08:00
Chenyme b1b26117e5 Merge pull request #962 from lij768423-svg/docs/document-request-retry-compact-egress
docs: document requestRetry, compact session drift, and sticky nodes
2026-08-18 20:12:48 +08:00
Chenyme e6428933e3 fix: harden Build OAuth credential refresh recovery 2026-08-18 20:11:54 +08:00
lij768423-svg fb803d4ba1 docs: document requestRetry, compact session drift, and sticky nodes
Cover the recently merged gateway withhold/retry, keep compaction
summaries across session-key drift, and recommend one fixed node per
sticky session. Point sidecar docs at GROK2API_BASE_URL and make it
clear requestRetry is in-process, not sidecar.
2026-08-18 19:19:54 +08:00
Chenyme 6566c07104 Merge pull request #950 from kkx600/feat/accounts-refresh-token-import
feat(accounts): support Grok Build refresh-token imports
2026-08-18 18:46:48 +08:00
Chenyme 526d43ce71 Merge branch 'main' into feat/accounts-refresh-token-import 2026-08-18 18:38:41 +08:00
Chenyme 6f113442c7 fix: persist rotated Build refresh tokens safely during import 2026-08-18 18:37:26 +08:00
Chenyme 608713e4c3 Merge pull request #961 from chenyme/duplicate_tools
fix: avoid duplicate view_image tool definitions
2026-08-18 18:28:56 +08:00
Chenyme a608c209a1 fix: avoid duplicate view_image tool definitions 2026-08-18 18:22:15 +08:00
Chenyme 99591718c2 Merge pull request #960 from chenyme/reason
fix: deduplicate streamed reasoning sources
2026-08-18 18:14:07 +08:00
Chenyme 43afb615ad fix: deduplicate streamed reasoning sources 2026-08-18 18:02:45 +08:00
Chenyme b202965dc8 Merge pull request #959 from lij768423-svg/feat/request-quality-hold-retry
feat: withhold missing-thinking streams and retry another account
2026-08-18 17:36:16 +08:00
Chenyme 43b17d866c Merge branch 'main' into pr/959
# Conflicts:
#	backend/internal/infra/config/config.go
2026-08-18 17:31:09 +08:00
Chenyme 6b8a969865 feat: enhance quality retry mechanism with new read pump and timeout handling 2026-08-18 17:28:08 +08:00
Chenyme 07eef7c32c Merge pull request #958 from lij768423-svg/fix/quality-guard-base-url
fix: honor GROK2API_BASE_URL in quality-guard sidecar
2026-08-18 16:50:51 +08:00
Chenyme bbc1b1a250 Merge branch 'main' into fix/quality-guard-base-url 2026-08-18 16:46:32 +08:00
Chenyme b80ec9d278 fix: enhance GROK2API_BASE_URL validation and testing 2026-08-18 16:46:18 +08:00
Chenyme d851f92b5b Merge pull request #957 from lij768423-svg/feat/auto-assign-migration-bounds
feat: bound auto-assign share and per-cycle migrations
2026-08-18 16:41:00 +08:00
Chenyme 6e3e4c2ab3 Merge branch 'main' into feat/auto-assign-migration-bounds 2026-08-18 16:36:22 +08:00
Chenyme 3c70dc7064 fix: enforce safe auto-assign share bounds 2026-08-18 16:35:58 +08:00
Chenyme cc98a7e1fb Merge pull request #956 from lij768423-svg/fix/compaction-session-drift
fix: keep compaction summary when session key drifts
2026-08-18 16:29:13 +08:00
Chenyme ef3415dc95 Merge branch 'main' into fix/compaction-session-drift 2026-08-18 16:19:42 +08:00
Chenyme 6407a39cc4 Merge pull request #953 from kkx600/feat/account-token-millions
feat(accounts): display Free quota tokens in M units
2026-08-18 16:19:32 +08:00
Chenyme bfd74a8f8d Merge branch 'main' into feat/account-token-millions 2026-08-18 16:16:14 +08:00
Chenyme 017165f5ba Merge pull request #952 from kkx600/fix/account-recovery-breakdown
fix(accounts): distinguish quota recovery states
2026-08-18 16:12:54 +08:00
Chenyme a578ca09b6 Merge branch 'main' into fix/account-recovery-breakdown 2026-08-18 16:08:31 +08:00
Chenyme 7fc590895d feat: enhance abnormal account status display with detailed breakdown 2026-08-18 16:08:01 +08:00
Chenyme e3d07f8453 Merge pull request #951 from kkx600/feat/audit-reasoning-effort
feat(audit): record reasoning effort
2026-08-18 15:56:10 +08:00
Chenyme 7e7b89f0c5 feat: enhance reasoning effort handling and normalization across components 2026-08-18 15:50:05 +08:00