Repository navigation
ShellFrame v0.39.1
v0.39.1 (2026-10-10)
Fixes
-
A Grok Build tab shows its weekly allowance and pace on the usage pill.
v0.39.0 treatedgrokas a provider with nothing to meter, so the top-bar
pill stayed on "查不到" and/usagesaid there was no weekly figure. That
was wrong: grok's own usage view already requests
GET /v1/billing?format=creditsfrom cli-chat-proxy. The body carries
creditUsagePercent(utilisation, not remaining) andcurrentPeriod, which
on a measured account isUSAGE_PERIOD_TYPE_WEEKLYwith a start and an end
seven days apart. There is no five-hour bucket, so none is invented. The pill
now renders that window aswkplus thepcpace line (ahead, on schedule,
or leaving quota unused), and/usageprints the same reading beside this
session's token and context counts. A product row with no percentage is
omitted rather than shown as zero. Covered bytests_grok_provider.pyand
tests_grok_usage_pill.py.Grok Build 分頁的頂列用量膠囊會顯示週配額與配速。 v0.39.0 把
grok
當成沒有可報的配額,頂列停在「查不到」,/usage也寫沒有週讀數。這與 grok
自己的用量視窗不符:它打的是 cli-chat-proxy 的
GET /v1/billing?format=credits。回應裡的creditUsagePercent是已用百分比
(不是剩餘),currentPeriod在實測帳號上是USAGE_PERIOD_TYPE_WEEKLY,
起迄剛好七天。沒有五小時窗口,所以不編一個。膠囊現在把這個窗口畫成wk,
旁邊的pc是配速(超前、剛好、或額度用不完)。/usage在同一個讀數後面
接上這個 session 的 token 與 context。某個產品沒有百分比就略過,不顯示成 0。
由tests_grok_provider.py與tests_grok_usage_pill.py守著。