Repository navigation
Releases
v0.6.4
/usagedialog keys (tab,r,j) work on OpenCode 2.2.x again. The commands fired, but the dialog never re-rendered: OpenCode loads the plugin's modules on separate Solid runtimes, so panel signals did not track across them. The panel now notifies the dialog, which asks the host to re-render with fresh state; closing the dialog unsubscribes.
v0.6.3
- 0.6.3 — Kimi Code CN (
kimi-code-plan-cn): the 5-hour window falls back
to theusages.limit_5hratio when thelimits[]row carries no counts,
instead of rendering an empty—bar; a monthly window is also read from a
counted 30-daylimits[]entry when the endpoint reports it there. Includes
the outstanding Dependabot dev-dependency bumps.
v0.6.2
- 0.6.2 — OpenCode 2 context panel fixes: the V2 adapter now reads the
model id from the store'smodel.id, so the model lookup succeeds and the
cell grid, per-category percentages and compaction-headroom line render
again instead of—; the translated messages also carry the session id, and
the system-prompt capture anchors its freshness check to the turn's user
message — OpenCode 2 fires the capture hook just before the assistant
message is stamped, which previously marked every capture(derived).
v0.6.1
- 0.6.1 — Kimi Code adapter tracks the 2026-09 quota-model API change:
usage windows now come from theusages.limit_5h/limit_7d/
limit_month_totalratios (with alimit_month_codebreakdown), and Extra
Usage is read from the camelCaseboosterWallet(fixed-pointBOOSTER
balance). The pre-2026-09usage/limits[]/totalQuota/
booster_walletshapes remain as fallbacks.
v0.6.0
The TUI plugin now loads on OpenCode 2.x. Previously tui.json failed with "Invalid V2 TUI plugin module", so the sidebar panel and /usage command silently disappeared.
Fixed
- The TUI entrypoint default-exports
{ id, setup, tui }: OpenCode 2 callssetup(sidebar panel,/usagecommand and dialog,session.idlerefresh viactx.data.on), while OpenCode 1 still readstui. - Added
src/v2-tui.ts, a structural mirror of the OpenCode 2 TUI context (@opencode/plugin@2.0.20) that adapts theme tokens,SessionMessageInfo, andui.dialogback to the existing renderers. - Server entrypoint unchanged since 0.5.0 (
usage_report, low-quota warnings, prompt capture).
Note: OpenCode 2 does not expose the resolved config to TUI plugins, so the dialog loses the compaction-reserve nuance only; token rows are unaffected.
v0.5.0
The server plugin now loads on OpenCode 2.x. Previously it failed with "Plugin must export a default definition with an id and an effect or setup function".
Fixed
- The server entrypoint default-exports the V2
{ id, setup }definition, sousage_reportand low-quota warnings work on OpenCode 2.x. The V1serverhook is kept, so OpenCode 1.18.29+ still loads too.
v0.4.1
Provider HTTP plumbing is now shared and context helpers were extracted; no user-facing behavior change.
Changed
- Shared provider HTTP plumbing and context helpers across adapters.
v0.4.0
/usage now shows how full your context window is, and no longer costs model tokens.
Added
- Context usage panel: exact prompt-token total against the context window, a per-category cell grid, the auto-compaction point with live headroom, and session cost.
Changed
/usageis now a local TUI command — it no longer routes through the model, so it costs no tokens.- Slash arguments are no longer supported (
--json,--refresh, provider id). Use the dialog keys (rrefresh,tabscope,jraw JSON) or theusage_reporttool.
v0.3.0
Adds two provider adapters:
- GitHub Copilot (
github-copilot) - ChatGPT (
openai)
v0.2.0
Kimi Code is now reported as two separate plans:
kimi-code-plan-global— kimi.aikimi-code-plan-cn— kimi.com