Repository navigation
Rolls up the v1.3.x line into one stable release. No code changes since v1.3.2.
Measurement
- AVG / live TPS are no longer inflated by tool calls. Streaming of tool-call arguments now counts toward live TPS and the AVG generation window. Steps that made tool calls without streamed arguments are left out of AVG and calibration.
- Reasoning tokens are only counted when the reasoning was actually streamed.
- The spinner stops after an interrupt or error.
- A completion only clears the live state of the message that is currently streaming.
Performance and display
- No timers and no re-renders while idle. Updates are throttled and only re-render when the text changes.
- The meter is a single text node: the idle line is exactly
TPS -- | AVG -- | TTFT --, and the thinking stream has a per-cell color gradient again. - Writing to a destroyed view can no longer throw.
opencode 2.x
- The meter follows session switches, and the slot is unregistered on dispose.
Options
spinner.intervalMsis clamped to 40–1000 andspinner.cellsto 2–16. Invalid colors and invalid tiers fall back to the defaults.
Engineering
- 67 unit tests, plus a sync test for the measurement region shared by
measure.tsandtui.tsx. - CI and Publish run
tscandnpm run smoke-install. npm auditreports 0 for the repo.- Added a LICENSE file (MIT).
Notes
- The peer dependencies stay required. v1.3.1 tried making them optional to slim the install, and the meter stopped loading on opencode 1.x (fixed in v1.3.2). The install is therefore still about 126 MB, and the Dependabot runtime alerts come from opencode's own packages.
Updating
Run npm cache clean --force, delete ~/.cache/opencode/packages/@jack-yang/opencode-tps-meter@latest, then run opencode plugin @jack-yang/opencode-tps-meter -g -f and restart opencode.