Repository navigation
Releases: jn-s3s/opencode-tui-quota-usage
Releases · jn-s3s/opencode-tui-quota-usage
Release list
v0.2.1
What is Changed
Fixed
- The sidebar header read the plugin name and version from hardcoded constants, so it kept showing
0.1.0after the package had moved to0.2.0. Both values are now read frompackage.jsonat build time, so the header tracks the released version automatically.
Full Changelog
v0.2.0
What is Changed
Changed
- Renamed the TUI setup guidance command from
/quota-providersto/quota-help. - A disabled provider is now hidden from the sidebar instead of appearing as a section marked
Disabled · /quota-<provider>. One hint row names every provider that is currently off, so a hidden provider can still be turned back on. - Added a persistent right-aligned
/quota-help for helpfooter to the sidebar. - A successful refresh now carries forward
plan,activeUntilandaccessEndsAtfrom the previous snapshot instead of clearing them. Carried-over values keep their original fetch time and render with a(stale)suffix once older than 5 minutes, so a subscription boundary whose follow-up lookup keeps failing is no longer shown as current.
Full Changelog
v0.1.0
Quota sidebar foundation
- Initial release adds a read-only quota sidebar for the OpenCode V2 CLI and TUI, bundled from
src/tui.tsxintodist/tui.jsand loaded as a CLI-only plugin through~/.config/opencode/cli.json.
Provider tracking
- OpenCode Go and Go Plus section shows 5h, Weekly and Monthly windows as percent-left meters with a reset countdown, staying disabled by default until enabled with
/quota-opencode. - Codex section shows 5h and Weekly windows read from the Codex CLI
auth.json, enabled separately with/quota-codex.
Setup and live updates
- Go API key is stored in Windows Credential Manager with an
OPENCODE_QUOTA_GO_API_KEYenvironment fallback and an optionalOPENCODE_QUOTA_GO_ORG_IDfor best-effort plan and access status. - New TUI commands
/quota-usagefor sidebar visibility,/quota-providersfor setup guidance and/quota-opencode-keyfor Go credential and org ID management. - Provider sections collapse independently, enabled providers refresh every 2 minutes, a 30 second countdown clock keeps the display current and warning or critical thresholds trigger at 45% and 10% left.
Breaking Changes
None.