OpenCode Vitals 0.1.4
The bar now follows the window
Minimize OpenCode and the bar goes away; restore the window and the bar comes back. On Linux/X11 the window manager is asked over _NET_WM_STATE with xprop, at most once a second, and the OpenCode window is found by WM_CLASS. Verified against the live display: the window is found and reported not hidden while maximized.
On other platforms, or when xprop is unavailable, the bar stays up rather than hiding a measurement it cannot be sure about.
Also in this release
- The npm package page now renders its images. The README used relative paths (
docs/bar.png), which GitHub resolves and npm cannot, so the package page showed broken images. Every image and the changelog link are absolute now, and the README test rejects a relative image source. - The platform table states the window-following behaviour per platform, and the tested OpenCode versions list now includes 2.0.18.
- Built for OpenCode V2; the requirements table names the tested V2 releases.
Measured
- 166 plugin checks and 66 bar checks. Three of the plugin checks enforce npm-safe image URLs; ten of the bar checks cover the new window-following behaviour (window-list parsing, the hidden state, the fail-open paths, and the bar withdrawing and returning).
Upgrade
npx opencode-vitals install # updates in placeThe bar process is replaced within about five seconds of the new script landing; a restart of OpenCode is only needed for the version recorded by the plugin to read 0.1.4.