fix(quota): prioritize shortTerm 5h quota bucket for hourly quota display - #12
Open
zuluion wants to merge 1 commit into
Open
fix(quota): prioritize shortTerm 5h quota bucket for hourly quota display#12zuluion wants to merge 1 commit into
zuluion wants to merge 1 commit into
Conversation
修改文件:
└── skills/antigravity-cli-statusline/scripts/
├── fetch-local-quota.mjs — 新增 parseShortTermBuckets 并增强进程查找
├── fetch-local-quota.test.mjs — 新增短周期配额解析单元测试
├── statusline-quota.mjs — 优先使用 shortTerm 5h 桶渲染小时配额与重置时间
└── statusline-quota.test.mjs — 新增 R5 配额优先级渲染测试
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.
Summary
Fixes an issue where Hourly Available and Hourly Reset incorrectly displayed Weekly quota data in Antigravity 1.1.11+ due to server-side group bottleneck mechanism changes.
Key Changes
fetch-local-quota.mjs:parseShortTermBuckets()to extract short-term (5h/3h/hourly) buckets fromRetrieveUserQuotaSummaryintocache.shortTerm.Where-Objectand WMIC fallback).statusline-quota.mjs:resolveModelQuota()to prefercache.shortTerm[pool](5h bucket) overGetUserStatusbottleneck quota.parseShortTermBucketstest infetch-local-quota.test.mjs.[Test R5]instatusline-quota.test.mjsto verifyshortTerm5h priority over model bottleneck quota.Test Coverage
fetch-local-quota.test.mjs(All R0 tests passed).statusline-quota.test.mjs(All R1–R5 tests passed).Closes #11