alfadb
ea8489cd41
fix(admin): mirror the full quota platform list in the frontend
...
后端对 default_platform_quotas(setting_update.go)与用户平台配额
(user_handler.go PUT)都是整体替换语义,且以 AllowedQuotaPlatforms
(11 平台)为白名单。前端配额平台镜像此前只硬编码 5 平台
(anthropic/openai/gemini/antigravity/grok),导致:
- 保存 Settings 会静默丢弃 kimi/zhipu/deepseek/minimax/opencode_go/
ollama_cloud 六个平台的默认配额;
- 管理员在用户配额弹窗不做修改直接保存,就会软删该用户经 API 配置的
ollama_cloud 等平台配额行(缺行等价于不限额 → 限额 fail-open)。
- settings.ts 新增单一常量 QUOTA_PLATFORMS(对齐后端
AllowedQuotaPlatforms 全部 11 平台),PlatformType/PlatformQuotaPlatform
由它派生,删除其余 5 平台硬编码副本(users.ts、配额弹窗、
UserPlatformQuotaCell、SettingsView 两处模板字面量);
- normalizePlatformQuotasMap / sanitizePlatformQuotasMap 保留输入中
前端未知(后端新加)的平台 key;用户配额弹窗保留响应中的未知平台行,
避免后端先行加平台时再次静默删数据;
- 测试:用户配额弹窗预置 ollama_cloud 不修改直接保存仍包含该配额;
Settings 同路径覆盖;kimi/zhipu/deepseek/minimax/opencode_go 不再
被丢;未知平台 key 保留。
2026-10-08 15:24:05 +08:00
alfadb
df0199fbdd
feat(scheduling): suspend exhausted legacy ollama cloud accounts
...
增量 4a(③ 组 A6+C25+E9 + ⑤ 组 A2 + F4,同批落地):
- A2: 新增 AccountModeOllamaLegacy/OllamaCredits 常量与
Account.GetOllamaCloudAccountMode 解析器(非 ollama_cloud/非 apikey
返回空串;未设置或值不认识默认 legacy,存量账号保持受阈值保护)
- A6: AllowedSchedulingThresholdPlatforms 纳入 ollama_cloud(4 个消费点
同步生效:评估器门禁、设置校验、存储解析、设置审计 diff)
- C25: 评估器新增 ollama 分支 + ollamaCloudThresholdCandidates,仅 legacy
产生 5h/weekly 停调候选(credits 型月度信用池候选恒空);快照缺失/
status!=ok/无窗口数据不停调;取最晚 reset(与 openai/anthropic 同类)
- E9: 前端 SchedulingThresholdPlatformType union 与
SCHEDULING_THRESHOLD_PLATFORMS 数组加 ollama_cloud(与后端白名单两侧同步)
- F4: 评估器表驱动用例(legacy 停/credits 不停/默认 legacy/坏快照不停)、
ApplyAccountSchedulingThreshold 端到端(temp_unschedulable 落库断言)、
mode 解析器用例、设置校验 ollama_cloud 往返用例
无迁移、无 DTO 变更(account_mode 为自由 JSONB,无 CHECK 约束)。
2026-10-08 15:24:05 +08:00
alfadb
61441ba44d
feat(ui): render ollama_cloud usage cell
...
E17: account for ollama_cloud explicitly in both usage-cell computeds.
Empirically the cell already renders via the generic api-key root branch
(eligible -> OllamaCloudUsageCell + today-stats, ineligible -> '-'
placeholder), because eligibility itself is server-driven
(ollama_cloud_usage.eligible, fixed backend-side in the previous
commit); so the computeds pin that behavior instead of flipping to the
scrolling-window root branch, which would drop today-stats rows and
fire /usage calls the backend rejects for api-key accounts.
- showUsageWindows: explicit ollama_cloud api-key branch -> false
(generic api-key branch renders the Ollama cell)
- shouldFetchUsage: document why ollama_cloud stays unfetched (backend
/usage rejects api-key accounts; data arrives via account payload and
the dedicated refresh endpoint, same shape as CN platforms)
- tests: eligible renders OllamaCloudUsageCell without /usage fetch;
missing/eligible=false renders placeholder, never CN quota cells
2026-10-08 15:24:04 +08:00
alfadb
110958f77a
feat(platform): add ollama_cloud platform skeleton
...
- 新增 PlatformOllamaCloud 常量与 AllowedQuotaPlatforms 白名单
- 同步 ent schema 平台校验(user_platform_quota / channel_monitor /
channel_monitor_request_template)及生成物
- 新增迁移 239:4 类 CHECK 放宽至 238 的超集(含 ollama_cloud),零 DML 回填
- 新增迁移测试断言 239 为 238 严格超集
- 前端:平台目录、类型联合、配色、图标、i18n 文案
2026-10-08 15:24:04 +08:00
Wesley Liddick
3e69643392
Merge pull request #7721 from ouchihao/codex/bug-fractional-byte-rate
...
fix(ops): retain byte units for sub-byte throughput
2026-10-08 13:51:52 +08:00
Wesley Liddick
3a012ac0ce
Merge pull request #7725 from ouchihao/codex/bug-select-disabled-open
...
fix(ui): close selectors when they become disabled
2026-10-08 13:51:40 +08:00
Wesley Liddick
80dd7288a6
Merge pull request #7728 from ouchihao/codex/bug-oauth-code-unmount
...
fix(auth): avoid starting OAuth code cooldowns after unmount
2026-10-08 13:51:30 +08:00
Wesley Liddick
5a6e826f83
Merge pull request #7716 from ouchihao/codex/bug-scaled-price-exponent
...
fix(pricing): preserve exponents when trimming scaled prices
2026-10-08 13:51:19 +08:00
Wesley Liddick
d068b866f3
Merge pull request #7718 from ouchihao/codex/bug-bulk-user-error-message
...
fix(users): show normalized errors when bulk updating limits
2026-10-08 13:51:05 +08:00
Wesley Liddick
a618338987
Merge pull request #7719 from ouchihao/codex/bug-notify-email-timers
...
fix(profile): ignore obsolete notification email code responses
2026-10-08 13:50:54 +08:00
Wesley Liddick
b0c2c4d623
Merge pull request #7720 from ouchihao/codex/bug-usage-zero-rate
...
fix(usage): preserve zero user multipliers in cost details
2026-10-08 13:50:39 +08:00
Wesley Liddick
9663b5ccf0
Merge pull request #7722 from ouchihao/codex/bug-announcement-read-failure
...
fix(announcements): report failed read confirmations accurately
2026-10-08 13:50:19 +08:00
Wesley Liddick
6cfa0f4ef8
Merge pull request #7723 from ouchihao/codex/bug-batch-image-access-retry
...
fix(batch-image): allow access lookup retries after request failures
2026-10-08 13:50:08 +08:00
Wesley Liddick
3149d62851
Merge pull request #7724 from ouchihao/codex/bug-cleanup-task-race
...
fix(usage): ignore obsolete cleanup task list responses
2026-10-08 13:49:58 +08:00
Wesley Liddick
0b51cbe15d
Merge pull request #7729 from ouchihao/codex/bug-backup-polling-unmount
...
fix(backup): prevent polling from restarting after navigation
2026-10-08 13:49:48 +08:00
Wesley Liddick
3dc2a9c371
Merge pull request #7731 from ouchihao/codex/bug-dialog-escape-stack
...
fix(ui): limit Escape to the most recently opened dialog
2026-10-08 13:49:34 +08:00
Wesley Liddick
2c13fb595e
Merge pull request #7764 from ouchihao/codex/bug-plugin-config-session-race
...
fix(plugins): ignore obsolete configuration UI sessions
2026-10-08 13:49:23 +08:00
Wesley Liddick
068239305e
Merge pull request #7765 from ouchihao/codex/bug-compliance-reset-race
...
fix(auth): keep cleared compliance state isolated from pending requests
2026-10-08 13:49:13 +08:00
Wesley Liddick
9e46f2d77e
Merge pull request #7732 from ouchihao/codex/bug-step-up-concurrent-prompts
...
fix(auth): share pending step-up verification prompts
2026-10-08 13:48:52 +08:00
Wesley Liddick
745ff1d3ca
Merge pull request #7911 from lyy0709/codex/usage-output-tps
...
feat(usage): add output TPS to usage logs and ops dashboard
2026-10-08 11:40:15 +08:00
Wesley Liddick
0ac774e378
Merge pull request #7853 from wucm667/feat/issue-7847-compact-account-filters
...
feat(accounts): compact account search and filters
2026-10-08 11:39:40 +08:00
Wesley Liddick
ba3af61251
Merge pull request #7897 from wucm667/fix/issue-7894-long-context-marker
...
fix(usage): replace misleading long-context multiplier badge
2026-10-08 11:37:40 +08:00
Wesley Liddick
48c647b5d2
Merge pull request #7833 from ShanYi-Hui/fix/preserve-email-binding-draft
...
fix(profile): preserve email binding draft during user refresh
2026-10-08 11:37:25 +08:00
Wesley Liddick
b94974467b
Merge pull request #7818 from ouchihao/codex/bug-custom-page-request-race
...
fix(custom-pages): ignore obsolete Markdown responses
2026-10-08 11:37:11 +08:00
Wesley Liddick
4747827e35
Merge pull request #7819 from ouchihao/codex/bug-stripe-payment-unmount
...
fix(payment): stop late Stripe callbacks after leaving the page
2026-10-08 11:36:59 +08:00
Wesley Liddick
f3bcad3c33
Merge pull request #7839 from ouchihao/codex/bug-scheduled-results-race
...
fix(admin): keep scheduled test results scoped to the expanded plan
2026-10-08 11:36:33 +08:00
Wesley Liddick
2c6bd63de9
Merge pull request #7840 from ouchihao/codex/bug-monitor-template-list-race
...
fix(monitor): ignore obsolete template manager list responses
2026-10-08 11:36:19 +08:00
Wesley Liddick
02aad478f3
Merge pull request #7841 from ouchihao/codex/bug-alert-events-pagination-race
...
fix(ops): discard stale alert event pages after filter changes
2026-10-08 11:36:07 +08:00
Wesley Liddick
486b226b69
Merge pull request #7842 from ouchihao/codex/bug-ops-settings-load-guard
...
fix(ops): require loaded settings before saving
2026-10-08 11:35:56 +08:00
Wesley Liddick
d1202bea5f
Merge pull request #7843 from ouchihao/codex/bug-alert-rule-integer-duration
...
fix(ops): validate alert rule durations as whole minutes
2026-10-08 11:35:42 +08:00
Wesley Liddick
1865f28469
Merge pull request #7900 from ouchihao/codex/bug-rpm-edit-number
...
fix(groups): preserve numeric values when editing RPM overrides
2026-10-08 11:35:27 +08:00
Wesley Liddick
c2f0edc137
Merge pull request #7901 from ouchihao/codex/bug-airwallex-navigation
...
fix(payment): stop Airwallex checkout after leaving the page
2026-10-08 11:35:15 +08:00
Wesley Liddick
cdbf1d6f4d
Merge pull request #7902 from ouchihao/codex/bug-passthrough-toggle-state
...
fix(admin): use the saved passthrough rule enabled state
2026-10-08 11:35:01 +08:00
Wesley Liddick
b126b94525
Merge pull request #7903 from ouchihao/codex/bug-profile-username-draft
...
fix(profile): preserve username edits made during save
2026-10-08 11:34:49 +08:00
Wesley Liddick
7fc5332b45
Merge pull request #7904 from ouchihao/codex/bug-group-rate-load-race
...
fix(groups): ignore stale rate multiplier loads
2026-10-08 11:34:38 +08:00
Wesley Liddick
4bcad0657b
Merge pull request #7800 from duckducktw/fix/pricing-entry-autofill-append
...
fix(channels): 追加模型时不再改写条目已留空的价格
2026-10-08 11:34:17 +08:00
Wesley Liddick
3c274768c1
Merge pull request #7889 from aishangwuji/fix/opencode-zen-routing-and-unsupported-models
...
fix(opencode): correct Zen qwen3.8-max endpoint and reject unsupported models
2026-10-08 11:32:11 +08:00
Wesley Liddick
bbf1d37783
Merge pull request #7891 from aishangwuji/fix/opencode-go-usage-retry-after-and-403
...
fix(opencode): cap Retry-After backoff at 24h and report neutral 403
2026-10-08 11:31:40 +08:00
lyy0709
18182f1127
style(ops): align output TPS tooltip indentation
2026-10-07 13:06:35 -07:00
lyy0709
1817a8428a
feat(ops): show per-request output TPS percentiles
2026-10-07 13:06:19 -07:00
lyy0709
6f6a27f9c6
feat(usage): show per-request output TPS by default
2026-10-07 11:35:03 -07:00
chihao.ou
8811c125ec
fix(groups): ignore stale rate multiplier loads
2026-10-07 14:57:52 +08:00
chihao.ou
3f2f66f328
fix(profile): preserve username edits made during save
2026-10-07 14:54:14 +08:00
chihao.ou
f022a04573
fix(admin): use the saved passthrough rule enabled state
2026-10-07 14:53:09 +08:00
chihao.ou
795a7e2783
fix(payment): stop Airwallex checkout after leaving the page
2026-10-07 14:51:46 +08:00
chihao.ou
7b1aa93148
fix(groups): preserve numeric values when editing RPM overrides
2026-10-07 14:50:53 +08:00
wucm667
d5f490e106
fix(usage): replace misleading long-context multiplier badge
2026-10-07 10:48:38 +08:00
shaw
0f9d460dc6
fix(deps): resolve frontend audit failures (vue, source-map-js, xlsx exceptions)
...
- Bump vue to ^3.5.43 so @vue/server-renderer is >= 3.5.42
(GHSA-g2v6-rqmx-r4w6).
- Override source-map-js to >= 1.2.2 (GHSA-68fv-2mgg-jv7q).
- Renew the expired xlsx exceptions until 2027-01-06: xlsx has no patched
release on npm and is only used for XLSX.write export in the admin usage
view; both advisories require parsing a crafted file and no read path exists.
Lockfile regenerated with pnpm 9 to match CI.
2026-10-07 09:44:01 +08:00
ASWJ
df89228c2d
fix(opencode): report 403 as neutral forbidden in usage snapshot
2026-10-06 23:57:15 +08:00
ASWJ
0dccd7b6f5
fix(opencode): correct Zen qwen3.8-max endpoint and reject unsupported models
...
- Route qwen3.8-max to Chat Completions on OpenCode Zen mode instead of Messages
- Fast-reject unsupported model families (gemini-*, jev-*) with HTTP 400 on OpenCode gateway to avoid upstream 404 failovers and strike accumulation
- Sync frontend DEFAULT_OPENCODE_ZEN_PROTOCOL_RULES with backend
2026-10-06 23:18:57 +08:00