Skip to content

fix(usage): handle missing Token Plan reset times - #141

Open
sonicg83 wants to merge 2 commits into
modelstudioai:mainfrom
sonicg83:codex/usage-token-plan-reset-times
Open

fix(usage): handle missing Token Plan reset times#141
sonicg83 wants to merge 2 commits into
modelstudioai:mainfrom
sonicg83:codex/usage-token-plan-reset-times

Conversation

@sonicg83

@sonicg83 sonicg83 commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • add usage token-plan JSON and human-readable usage views
  • tolerate omitted reset timestamps when the corresponding quota percentage is zero
  • show unavailable reset timing clearly in the human-readable view

Root cause

The Token Plan usage service omits reset timestamps for unused quota windows, while the command treated all timestamps as required numeric fields.

Validation

  • pnpm --filter bailian-cli-commands exec vp test tests/token-plan-usage.test.ts tests/e2e/usage-token-plan.e2e.test.ts
  • pnpm --filter bailian-cli-commands exec vp check

@sonicg83
sonicg83 marked this pull request as ready for review August 6, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant