anomalyco / anomalyco/opencode

Go 套餐用量明细页百分比显示错误

Open
#45,858 6 comments 0 reactions 1 assignee View on GitHub

@fwang is already working on this.

Since Aug 28, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Go 套餐用量明细页百分比计算错误

用量明细表中,百分比列的计算结果与实际「用量 ÷ 配额」不符,疑似前端/统计逻辑 bug。

Steps to Reproduce:

  1. 登录 Go 套餐账户,打开用量明细页(billing → usage)
  2. 查看各模型行的「用量 / 配额 / 百分比」三列
  3. DeepSeek V4 Flash:用量 $17.8717,配额 $30.00,$17.8717 ÷ $30.00 = 59.6%,页面显示 54.1%
  4. DeepSeek V4 Pro:用量 $6.9153,配额 $15.00,应为 46.1%,页面显示 41.8%
  5. 各行百分比之和恰为 100%,但既不等于「用量/各模型配额」也不等于「用量/$60 月度上限」,计算基准有误

OpenCode version: 未知(问题位于 opencode.ai 网页用量明细页,与本地客户端版本无关)
Operating System: Windows 11
Terminal: Windows Terminal

账户信息(仅定位用,账务问题已邮件 help@anoma.ly):

  • 订阅邮箱:929257593@qq.com
  • Workspace ID:wrk_01KZEJWH6X18Q2PGGMW3MH31W9

附用量明细截图。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.