Repository navigation
fix(quota): restart estimates at the upstream reset after a plan upgrade for 0.9.11 - #39
Merged
Merged
Conversation
Claude Code reports a new plan only after it refreshes the account profile, while the upstream counter is already reset. Start the new plan segment at that reset so the zero reading anchors spend and rounding correction. Also round displayed reset times to the nearest minute and lay out the quota header with flex so the reset time stays inside the card on iOS Safari. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
Claude 套餐从 Max 5x 升到 20x 时,上游当即把 7 天和 Fable 已用百分比清零(重置时间不变),但 Claude Code 要等打开
/usage刷新账户资料后才上报新套餐。服务端以发现套餐变化的时刻作为新套餐起点,把之前的清零读数排除在外,重新起算的基准落在 1%,且整体关闭了四舍五入校正,导致新套餐预估晚一步出现、初期明显偏低。另外两处显示问题:
改动
docs/reporting.md中套餐变化的预估说明;版本 0.9.11,数据库结构版本未变,升级无需备份。验证
bun test tests444 通过,bun run typecheck、bun run build、所改文件 Prettier 与git diff --check通过。🤖 Generated with Claude Code