github-actions[bot]
7dc7cfce1d
chore: sync VERSION to 0.1.142 [skip ci]
2026-07-01 11:06:15 +00:00
shaw
98be187d56
chore: update sponsors
2026-07-01 19:04:40 +08:00
Haruka
e236bff1ed
fix: aggregate user model stats by requested model
2026-07-01 19:01:30 +08:00
phoenix
45be32b254
fix: remove space lines
2026-07-01 18:51:33 +08:00
shaw
60da9ba178
fix(frontend): refine grok icon, palette and i18n
v0.1.142
2026-07-01 18:49:33 +08:00
xueshiji
be26e6ff2c
fix: test
2026-07-01 18:09:20 +08:00
phoenix
f5b2961270
fix: Handle invalid arguments correctly for Gemini reasoning models
2026-07-01 18:08:25 +08:00
xueshiji
a0eaf12a01
fix: test
2026-07-01 17:54:39 +08:00
Wesley Liddick
5eb9da9c93
Merge pull request #3593 from heathermhuang/codex/grok-media-routing
...
fix: route Grok media endpoints
2026-07-01 17:49:27 +08:00
xueshiji
5e99561d6e
Merge branch 'Wei-Shaw:main' into main
2026-07-01 17:48:42 +08:00
xueshiji
1034f576d7
fix: 高峰倍率全链路透传、计费术语修正与边界处理
...
- 高峰倍率信息透传至可用渠道、支付计划、结算信息等 API,前端
GroupBadge / GroupOptionItem / SubscriptionPlanCard / PaymentView /
SubscriptionsView 统一展示高峰时段与倍率标签
- 修正计费术语:"文本倍率" → "token 倍率",明确高峰倍率同时作用于
token 计费的图片 token,图片按次计费不受高峰影响
- 允许高峰倍率 multiplier=0,支持高峰时段免费策略
- 切换分组类型为 standard 时自动清除高峰倍率配置
- 长上下文计费与标准计费路径改用内部实现,移除冗余中间调用
- 前端高峰倍率相关控件文案改为 i18n
- 新增多组高峰倍率相关单元测试
2026-07-01 17:46:12 +08:00
zy6p
71c16b7230
fix(test): correct passthrough failover assertions
2026-07-01 17:20:55 +08:00
Heatherm Huang
aac3261c69
fix: convert grok image edit uploads
2026-07-01 16:31:33 +08:00
Heatherm Huang
f77cf6b477
Revert "feat: add LLM media tester"
...
This reverts commit a34d4967e6 .
2026-07-01 16:08:21 +08:00
shaw
8c2d9b9a12
chore(openai): remove gpt-5.3-codex from OpenAI default model list
...
移除 OpenAI OAuth 账号默认模型列表中的 gpt-5.3-codex(后端 DefaultModels、前端 openai 白名单及 UseKeyModal 目录),保留 gpt-5.3-codex-spark 与计费/别名/messages-dispatch 相关逻辑不变。
2026-07-01 15:54:34 +08:00
Heatherm Huang
c9fb221a31
fix: satisfy grok media lint
2026-07-01 15:42:00 +08:00
Wesley Liddick
0a9146c3d1
Merge pull request #3586 from deqiying/codex/fix-subscription-revoke-soft-delete
...
修复订阅撤销操作实际上是软删除的bug
2026-07-01 15:38:45 +08:00
Heatherm Huang
42e471f59a
fix: harden grok media routing
2026-07-01 15:36:08 +08:00
Heatherm Huang
a34d4967e6
feat: add LLM media tester
2026-07-01 15:12:48 +08:00
Wesley Liddick
d679ee3c29
Merge pull request #3596 from JRBaggins/fix/tag-version-resolution
...
fix: source-build version resolution for release tags
2026-07-01 14:45:11 +08:00
xueshiji
ebd83dc0f9
fix: 触发ci
2026-07-01 14:43:22 +08:00
shaw
fd004bdd88
fix(account-repo): Clone query before Count to prevent state pollution
...
ListWithFilters reused the Ent query builder across Count() and All(),
so interceptor-appended predicates (SoftDeleteMixin's deleted_at IS NULL)
accumulated on the shared builder — the same pattern already fixed in
group_repo/promo_code_repo/user_repo by commit 2588fa6a (P1-03 audit).
The integration test now asserts pagination.Total matches len(items) on a
single page, guarding the total-vs-items invariant reported in #3601 .
Fixes #3601
2026-07-01 14:35:49 +08:00
xueshiji
e998f8044b
fix: ci
2026-07-01 14:34:57 +08:00
JRBaggins
de64b02612
fix: resolve build version from release tag
2026-07-01 14:25:46 +08:00
Wesley Liddick
3812e627a8
Merge pull request #3546 from nslogx/fix/platform-quota-five-platforms
...
fix: allow five platform quota updates
2026-07-01 14:07:08 +08:00
xueshiji
8b46994dc2
Merge branch 'Wei-Shaw:main' into main
2026-07-01 14:01:03 +08:00
Wesley Liddick
9817d5d5bf
Merge pull request #3598 from DaydreamCoding/feat/openai-spark-shadow-account
...
feat(spark-shadow): OpenAI Spark 链接型影子账号
2026-07-01 14:00:52 +08:00
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
DaydreamCoding and Claude Sonnet 5
bdf7ead157
feat(spark-shadow): OpenAI Spark 链接型影子账号
...
背景:gpt-5.3-codex-spark 使用独立于 codex 全局(5h/7d)的配额窗口(数据源是
/wham/usage 响应体的 codex_bengalfox,而非 codex 全局用的 x-codex-* 响应头),且
只能挂在已完成 OAuth 授权的 OpenAI 账号下复用其登录态,不能作为独立账号单独接入。
为此新增“链接型影子账号”(spark shadow account):影子账号本身不持有任何凭据,
通过 parent_account_id 指向母账号,凭据/token/代理透传自母账号并共享母账号的刷新
周期,仅在配额维度(quota_dimension=spark)和用量窗口上与母账号完全独立调度、互不
连坐。
实现:
- 数据模型:migration 154(+154a)给 accounts 表加 parent_account_id /
quota_dimension 列 + 4 条约束(维度合法 / parent⟺非 global 维度一致 / 禁自指 /
FK)+ 2 个 CONCURRENTLY 索引(母账号索引 + 每母账号至多一个影子的唯一索引)。
- 创建:POST /api/v1/admin/accounts/:id/shadow(CreateShadow)—— 一母一影(唯一
索引兜底并发竞态),继承母账号 proxy/分组/并发/优先级(显式传参可覆盖),默认
model_mapping 恒等映射到 spark(拒绝非 spark 模型),母账号必须是真实的 OpenAI
OAuth 账号(非影子)。
- 凭据透传:resolveCredentialAccount 把影子解析回母账号,GetAccessToken / 请求头
/ WS 三条路径统一走此函数;影子自身 Credentials 恒为空(仅允许写 model_mapping),
凭据写入的汇聚点 persistAccountCredentials 对影子早返 no-op,防止误写。
- 调度:parentHealthyForShadow 只看母账号是否仍是 OpenAI OAuth + 凭据/传输是否
可用(active、token 未过期、未处于 401/刷新失败/传输故障导致的临时不可调度冷却),
刻意不看母账号的 global 限流窗口——两条 429 道互不连坐。
- 用量:影子的 codex_5h/7d 走 OpenAIQuotaService.QueryUsage(/wham/usage 的
codex_bengalfox),与母账号走的 WSv2 探测(/responses 头)完全独立的数据源、
刷新节流与 staleness 判定。
- 备份:ExportData 显式排除影子账号(影子不持凭据,通用凭据型导入强制
credentials 非空、无法表达父子链接),按 skipped_shadows 计数提示前端。
- 前端:账号操作菜单新增“创建 Spark 影子”入口,影子行展示回填的母账号信息
(邮箱 / plan / 隐私模式 / 订阅到期 / chatgpt_account_id),批量操作自动跳过
影子账号。
说明:migrations 目录用完整文件名(而非纯数字前缀)标识迁移,故本次新增的
154_account_spark_shadow.sql / 154a_..._notx.sql 与已有的
154_add_ops_system_logs_api_key_id.sql 按序号共存,与目录里 145/151 已有的
先例一致。
测试:新增约 20 个测试文件,覆盖 handler(CreateShadow 校验 / 母账号信息回填)、
repository(影子 round-trip / 一母一影唯一索引 / 迁移 schema)、service(凭据
透传三路径 / 调度母健康门 / 用量窗口来源与刷新节流 / CRS 母账号不变量 / 各类
早返与 fail-closed 场景)及前端组件(账号列表 / 操作菜单 / 用量重置)。
验证(镜像 CI;golangci-lint 首次全量分析耗时过长被跳过,其余全部实测):
- gofmt -l:干净
- go build ./... / go vet ./...:通过
- go test ./... -count=1:全绿(全部包 ok,含 internal/service、
internal/repository、migrations)
- go test -tags integration ./internal/repository/... ./internal/service/...
(真实 Postgres,testcontainers):全绿,含迁移幂等性
(TestMigrationsRunner_IsIdempotent_AndSchemaIsUpToDate)与影子相关全部用例
- pnpm lint:check / pnpm typecheck / pnpm build(真实 vite 构建)/
pnpm vitest run:全绿(124 文件 760 用例)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-07-01 12:21:45 +08:00
zy6p
e28b11ad75
fix(test): align compact passthrough expectation
2026-07-01 11:49:43 +08:00
Heatherm Huang
c3e860607d
fix: include official grok media model ids
2026-07-01 11:43:35 +08:00
Heatherm Huang
2fe756e4be
fix: recognize grok media models
2026-07-01 11:43:35 +08:00
Heatherm Huang
3b5d812f7a
fix: route grok media endpoints
2026-07-01 11:43:35 +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
zy6p
605b6f6632
fix(test): resolve oauth passthrough unit build errors
2026-07-01 11:34:16 +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
deqiying
03727ac363
fix(subscription): 修复订阅撤销软删除失效
...
总: 增加明确的订阅撤销接口,修复撤销后的缓存失效和管理端 revoked 展示。
分: 同步失效订阅 L1 与 billing cache,补跨实例失效通知、soft-delete-aware 列表查询、revoked_at DTO 字段和回归测试。
2026-07-01 00:37:51 +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