Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
saime428
/
ai-code-usage-tray
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Releases
v1.2.2
AI Code Usage Tray v1.2.2
Compare
Choose a tag to compare
Sorry, something went wrong.
Filter
Loading
Sorry, something went wrong.
Uh oh!
There was an error while loading.
Please reload this page
.
No results found
saime428
released this
09 Sep 18:12
·
24 commits
to main since this release
v1.2.2
fe07e53
修正
Grok 周额度在新计费周期开始时整块消失
。xAI 的接口在用量为 0 时会把
creditUsagePercent
字段整个省略(proto3 丢默认值),此前这被当成「数据读不出来」而隐藏整个额度块,要等用量涨过 1% 才自己恢复——所以每个计费周期都会触发一次。现在字段缺失即读作 0%;其余字段(周期起止、是否过期)照常校验,记录本身损坏时仍然隐藏,不会自信地报一个 0。
说明
只影响 Grok 额度的显示。Claude / Codex 不受影响,token 统计和金额计算也没有变化。
仍有一处数据源限制:新计费周期开始后,额度要等你下次运行 Grok CLI 才会刷新出来(本机六个周期实测滞后 2–57 小时)。xAI 没有公开 API,这个数字只有 CLI 跑起来才会写进本地日志。这段时间选择不显示而不是猜一个值——周额度是账号级的,你可能已经在网页版或手机上用掉了一部分。
校验
本地测试:42/42 通过(新增两条断言:缺
creditUsagePercent
仍要给出额度、缺周期仍要隐藏)
变异测试:回退修复后,新断言按预期失败
GitHub Actions:Windows 构建通过
SHA-256:8e1eeb2d56f07d0c6e884e81b5e1f328da5416d6879dc942c163c4e27e6b8a4b
You can’t perform that action at this time.