Repository navigation
菜单栏:额度环改两列防溢出,支持 Antigravity 多配额池周限额与浮层明细 - #297
Merged
Moshuiwang merged 1 commit intoNov 11, 2026
Merged
Conversation
Moshuiwang
deleted the
antigravity/menubar-overflow-and-multi-pool-quota
branch
November 11, 2026 12:22
5 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景与用户问题
Zhipeng · Max 5x),单行排布 3 个额度环自然宽度达 405pt(超过 360pt 弹窗宽度),撑宽整个纵向ScrollView并导致右侧被裁切。language_server的RetrieveUserQuotaSummary包含 3 个独立配额池(Gemini Models、Claude and GPT models、Gemini 4 Argon),原采集端仅提取首个Gemini分组(0%),且主环倒计时误取 5h 窗口(3h 51min),导致查不到实际使用最高的周限额(如Claude/GPT51%)。改动内容
MenuBarQuotaSectionView统一采用两列自适应网格(每行最多 2 个环),去掉MenuBarQuotaRingItem右侧文案的无界.fixedSize(),并在MenuBarPopoverView约束ScrollView内容宽度为MenuBarPopoverLayout.width(360pt)。antigravity_limits_provider.py解析RetrieveUserQuotaSummary全部配额池(session/week、claude_gpt_session/claude_gpt_week、argon_session/argon_week),并在备用 reader 未配置时保留原始provider_unavailable错误。MenuBarViewModel主环优先选取已用百分比最高的周窗口并显示对应周重置倒计时,悬停浮层列出全部 3 个配额池的 7d 与 5h 额度明细。验证证据
swift test --package-path clients/macos:81 项全绿./scripts/verify.sh:823 项 Python 测试全绿