xueshiji
5e9529bb88
Merge branch 'Wei-Shaw:main' into main
2026-07-01 14:00:51 +08:00
shaw
96c9166b0e
fix(usage): 用户使用记录默认显示推理强度列
2026-07-01 14:00:27 +08:00
Wesley Liddick
5f62625ae6
Merge pull request #3577 from heathermhuang/codex/fix-english-ui-cjk
...
fix: remove Chinese strings from English UI
2026-07-01 11:35:04 +08:00
shaw
db0414233c
feat: 适配 sonnet5
2026-07-01 11:32:22 +08:00
Wesley Liddick
e2d21c35af
Merge pull request #3587 from alfadb/fix/openai-gpt-55-pro-codex-model
...
fix(openai): 保留 GPT-5.5 Pro Codex 模型名
2026-07-01 10:54:51 +08:00
shaw
59e9356c51
feat: 抹除 Anthropic OAuth 请求中客户端 dateline 隐写指纹
...
对 /v1/messages 转发到 Anthropic OAuth/setup-token 账号的请求做 dateline
归一化,将 system prompt 与 <system-reminder> 块中 "Today's date is …"
语句里的 4 种撇号变体与 "/" 日期分隔符还原为 ASCII 撇号 + "-",抹除某些
客户端在检测到非官方 base URL 时注入的 3 bit 隐写指纹。API Key 账号不受
影响。新增系统设置开关 enable_client_dateline_normalization,默认开启。
2026-07-01 10:54:18 +08:00
Wesley Liddick
c1335bae12
Merge pull request #3588 from Ogannesson/fix/openai-codex-preserve-encrypted-reasoning
...
fix(openai): preserve encrypted reasoning across turns on codex OAuth path
2026-07-01 09:11:35 +08:00
alfadb
b28a223337
fix(openai): 保留 GPT-5.5 Pro Codex 模型名
...
避免 Codex OAuth 模型归一化把 gpt-5.5-pro 降级为 gpt-5.5。\n\n同时补充 GPT-5.5 Pro 的计费回退与长上下文计费策略,保证保留上游模型名后仍使用现有 GPT-5.5/GPT-5.4 计费规则。\n\n验证:\n- go test ./internal/service/...\n- go build ./cmd/server/
2026-07-01 01:30:42 +08:00
Heatherm Huang
1158cf31bc
fix: require localized interval validation
2026-06-30 22:31:21 +08:00
Heatherm Huang
41bb15d302
fix: remove remaining English fallbacks
2026-06-30 22:27:37 +08:00
Heatherm Huang
b4f38b092f
fix: preserve zh locale in i18n cleanup
2026-06-30 22:06:27 +08:00
Oganneson
73de2ea7f0
fix(openai): preserve encrypted reasoning across turns on codex OAuth path
...
PR #2068 dropped every reasoning item from input[] on the OAuth/codex path
(store=false). That silently discards encrypted_content -- the out-of-band
channel that carries reasoning context across turns under store=false --
degrading multi-turn agent reasoning with no visible error. Reported by
@neteroster on PR #2068 .
The 404 that #2068 worked around ("Item with id 'rs_...' not found") is
triggered by the rs_* id lookup under store=false, not by the reasoning item
itself -- so the correct fix is to strip the id, not delete the item.
Verified end-to-end against the live chatgpt.com codex backend (gpt-5.5) and
a real OpenClaw container (api: openai-responses):
- bare rs_ id, no encrypted_content -> 404
- id stripped -> 200
- encrypted_content + id stripped -> 200, reasoning context preserved
- reasoning items require a summary field (missing -> 400)
- real OpenClaw multi-turn agent loop -> all /v1/responses 200, zero 404
Fix: keep the reasoning item, strip only the rs_* id (always, independent of
PreserveReferences), preserve encrypted_content/content/summary verbatim, and
backfill an empty summary when absent. Tool-call call_id pairing is untouched.
Also verified compaction_summary items (cmp_*, the other encrypted_content
carrier): they require encrypted_content (missing -> 400) and their id does not
404 when present (kept or stripped), so the existing generic path already
handles them safely -- no special-casing needed.
Adds regression tests for each verified reasoning contract.
Refs #1957 , #2068
2026-06-30 21:08:40 +08:00
Heatherm Huang
6e54776509
fix: localize English UI strings
2026-06-30 20:05:23 +08:00
github-actions[bot]
dc1bc15457
chore: sync VERSION to 0.1.141 [skip ci]
2026-06-30 09:29:40 +00:00
Wesley Liddick
7cb98e5bdc
Merge pull request #2007 from PMExtra/feature/user-usage-admin-parity
...
feat: align user usage analytics with admin
v0.1.141
2026-06-30 17:10:09 +08:00
shaw
930326116e
fix: 修复订阅支付金额显示错误
2026-06-30 16:26:22 +08:00
PMExtra
cafc95c3e2
feat: align user usage analytics with admin
2026-06-30 15:31:28 +08:00
github-actions[bot]
89b2d63ef2
chore: sync VERSION to 0.1.140 [skip ci]
2026-06-30 06:26:55 +00:00
xueshiji
915c60b150
feat(group): 订阅分组新增可选的高峰时段倍率,以支持智谱等coding plan的高峰时段
2026-06-30 14:17:05 +08:00
shaw
345d5c6b56
chore: update sponsors
v0.1.140
2026-06-30 14:11:14 +08:00
Wesley Liddick
76e0d90736
Merge pull request #3509 from wucm667/fix/refund-pending-not-success
...
fix(payment): 退款 pending 不再当成最终成功,避免站内账务与网关状态不一致
2026-06-30 13:38:04 +08:00
Wesley Liddick
56ca027a0f
Merge pull request #3568 from DaydreamCoding/fix/auth-signup-grok-platform-quota
...
fix(auth-signup): 平台配额快照脱离注册事务 + grok 补入 CHECK 约束
2026-06-30 13:37:54 +08:00
shaw
bf4f006736
fix: 修复用户列表使用时间排序冲突
2026-06-30 13:36:36 +08:00
DaydreamCoding and Claude Opus 4.8
185f9c9920
fix(auth-signup): 平台配额快照脱离注册事务 + grok 补入 CHECK 约束
...
自助注册(含钉钉/OAuth)报 500→404 的根因:grok 自 2026-06 进入默认平台配额
(default_platform_quotas / auth_source_*),但 user_platform_quotas 的 CHECK
约束(迁移 142)仅允许 anthropic/openai/gemini/antigravity。注册时
snapshotPlatformQuotaDefaults 写 grok 行违反约束 → 整个注册事务被 Postgres 标记
aborted → consumePendingOAuthBrowserSessionTx 撞 "transaction aborted" → 500 →
clearCookies → 用户重试拿到 404(PENDING_AUTH_SESSION_NOT_FOUND)。
影响面:所有新自助注册(不限钉钉)。
修复(两层):
- 事务隔离(fix①):snapshotPlatformQuotaDefaults 用 ent.WithoutTx 剥离调用方事务,
在基础连接 autocommit 执行。best-effort 快照失败永不毒化注册主事务,从根上消除
"事务内 fail-open 形同虚设"陷阱——今后任何平台/约束漂移都不会再连累注册。
- 迁移 157:把 grok 加入 user_platform_quotas.platform 的 CHECK 约束,与代码平台
列表(domain/constants.go PlatformGrok)对齐(DROP IF EXISTS + ADD,可重入)。
新增 ent.WithoutTx(ctx) helper(手写文件,不动生成代码)。
测试:
- 单测 TestSnapshotPlatformQuotaDefaults_DetachesCallerTransaction(RED→GREEN):
快照即便在事务 ctx 中也必须用脱离事务的 ctx 调 repo。
- 集成测试 TestUserPlatformQuotaRepository_BulkInsertInitial_GrokAllowed:
迁移 157 后 grok 可写入(真实 postgres 容器验证)。
验证:go build ./... / go vet -tags unit ./... / 全量单测(-tags unit,45 包) /
平台配额+迁移集成测试 全绿。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-30 13:22:27 +08:00
Wesley Liddick
dcd8689d78
Merge pull request #3548 from dftian478/codex/中文-上下文窗口不切号
...
修复 OpenAI 上下文窗口错误误触发账号切换
2026-06-30 10:57:26 +08:00
Wesley Liddick
efb8b45876
Merge pull request #3560 from StarryKira/feat/issue-3557-oauth-email
...
feat: fix OAuth email completion flow
2026-06-30 10:55:00 +08:00
Wesley Liddick
ac6d4ccf09
Merge pull request #3549 from dftian478/codex/中文-gpt55-codex-instructions
...
修复 OpenAI GPT-5.5 的 Codex 指令选择
2026-06-30 10:53:35 +08:00
Wesley Liddick
ac6f2e9693
Merge pull request #3559 from 315944211/fix/privacy-toast-result
...
fix: show privacy setting result accurately
2026-06-30 10:50:17 +08:00
Wesley Liddick
e70e36e4d2
Merge pull request #3484 from bwliangc/feat/risk-control-matched-keyword
...
feat(risk-control): record matched keyword in keyword-block logs
2026-06-30 10:40:30 +08:00
wucm667
93a3bf3077
Fix refund pending finalization gaps
2026-06-30 10:19:50 +08:00
wucm667
7316d83027
fix(payment): 区分退款 pending 并收敛匿名查单
2026-06-30 10:00:48 +08:00
Wesley Liddick
55902d8548
Merge pull request #3558 from heathermhuang/codex/grok-cli-compat
...
fix: support Grok admin test and CLI compatibility
2026-06-30 08:42:59 +08:00
haruka
260fda19b3
feat: fix OAuth email completion flow
2026-06-30 01:11:51 +08:00
315944211
a0a3d0c33e
fix: show privacy setting result accurately
2026-06-30 00:37:21 +08:00
Heatherm Huang
438510d298
fix: sanitize grok codex responses payloads
2026-06-29 21:37:30 +08:00
Heatherm Huang
10e623f674
fix: allow grok messages compatibility
2026-06-29 18:33:37 +08:00
Heatherm Huang
4a7148e203
fix: support grok cli compatibility routes
2026-06-29 17:53:19 +08:00
Wesley Liddick
d3acd8e96e
Merge pull request #3497 from JRBaggins/fix/openai-count-tokens-bridge
...
Bridge OpenAI count_tokens to responses input_tokens
2026-06-29 15:23:11 +08:00
dftian478
7cbf82ed65
修复 OpenAI 上下文窗口错误误触发账号切换
2026-06-29 10:29:23 +08:00
dftian478
709cf61853
修复 OpenAI GPT-5.5 的 Codex 指令选择
2026-06-29 10:25:43 +08:00
Wesley Liddick
c99112a9e9
Merge pull request #3515 from bestony/feat/ops-system-log-key-id
...
feat(ops): add key id filter to system logs
2026-06-29 09:24:40 +08:00
Wesley Liddick
a22b12677f
Merge pull request #3517 from bestony/feat/keys-column-settings
...
feat(keys): add API key column settings
2026-06-29 09:24:20 +08:00
Wesley Liddick
b0dbc22fe5
Merge pull request #3510 from wucm667/fix/subscription-confirm-show-converted-amount
...
fix(payment): 订阅订单确认页显示换算后的 CNY 实付金额,而非 USD 套餐价
2026-06-29 09:24:01 +08:00
Wesley Liddick
7c857bd080
Merge pull request #3441 from deqiying/feature/openai-quota-headroom-scheduler
...
新增 OpenAI 剩余额度调度权重
2026-06-29 09:23:32 +08:00
Wesley Liddick
bebafe7697
Merge pull request #3437 from imfangwenjie/fix/api-base-fetch
...
fix(frontend): use configured API base for direct requests
2026-06-29 09:23:13 +08:00
Wesley Liddick
fc1e5a94a9
Merge pull request #3534 from mxyhi/fix/openai-quota-platform-post-billing
...
fix(openai): preserve quota platform in usage billing
2026-06-29 09:21:44 +08:00
Wesley Liddick
61f735a667
Merge pull request #3498 from liuaho6-commits/fix/codex-image-bridge-tool-choice
...
fix(openai): set tool_choice auto for Codex image bridge
2026-06-29 09:21:25 +08:00
Wesley Liddick
b105cc0fd5
Merge pull request #3337 from ddnio/codex/openai-json-mode-developer-input
...
fix(openai): preserve JSON instructions in Codex OAuth input
2026-06-29 09:21:05 +08:00
Wesley Liddick
38577c6ca0
Merge pull request #3533 from Pluviobyte/codex/fix-api-key-unlimited-quota
...
fix(keys): reactivate exhausted keys set to unlimited
2026-06-29 09:19:53 +08:00
Wesley Liddick
47598462f5
Merge pull request #3401 from StarryKira/fix/issue-3394-fallback-pricing-log-spam
...
fix: stop per-request fallback-pricing log spam for unknown models (#3394 )
2026-06-29 09:19:44 +08:00