Dashboard usage records not updating — /internal/usage endpoint returns stale data
还没有人认领这个 Issue。
评估
调研方向
首先定位 /internal/usage 端点处理程序,并跟踪它读取使用记录的方式;将该路径与仍然正常工作的余额刷新路径进行比较。使用 curl 请求重现过时的响应,并在新的 API 调用于几分钟内出现在端点和仪表板中时验证完成情况。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
The usage/billing history on the web dashboard (commandcode.ai) hasn't been updating. The /internal/usage API endpoint is returning stale data — the latest record is from July 2nd, even though new API calls have been made in the last 24+ hours.
Balance refresh still works fine, it's specifically the usage records endpoint that's stuck.
To Reproduce
- Make a new API call with
command-code - Go to commandcode.ai dashboard → usage history
- Latest API call not listed
- Or directly:
curl 'https://api.commandcode.ai/internal/usage?limit=5'with valid session cookie — observe latestcreatedAtis stuck at July 2nd, no newer records appear
Expected behavior
Usage records should appear within minutes of each API call.
Additional context
- Balance/credits refresh works normally
- The API returns HTTP 200 with data, but the data itself is stale
- This affects both the web dashboard and any third-party apps relying on this endpoint
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommandCodeAI/command-code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#855 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
CommandCodeAI/command-code#841 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#655 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/command-code#608 ·
-
难度 3/5 1-2 天 新手友好度 70/100
CommandCodeAI/command-code#893 ·
查看 CommandCodeAI/command-code 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
connectrpc/connect-py#342 ·
-
01 type: bug
难度 2/5 1-3 小时 新手友好度 84/100
plone/cookieplone-templates#471 ·
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
notch8/utk_knapsack#148 ·
-
helsemelding-json-schema json-schema-core
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 84/100