Releases: philipecomputacao/opencode-llm-statusline
Releases · philipecomputacao/opencode-llm-statusline
Release list
v1.2.0 — Sticky Toast + Keep-Alive
Fixed
plugins/llm-statusline.toast.ts: toast is now sticky (duration=0 = never auto-dismisses). A keep-alivesetIntervalre-fires the toast every 4 min as a safety net, so the bar never disappears — even between model responses.- Both plugins:
versionfield was hardcoded to"opencode"(rendering📟 vopencode). Now spawnsopencode --versionat init time.
Added
LLM_STATUSLINE_TOAST_MSenv var to override toast duration (default 0 = sticky).client.app.logcalls for structured logging.- Keep-alive timer (
setIntervalevery 4 min).
Changed
TOAST_MSdefaults to0(sticky, never auto-dismiss).
v1.1.0 — Toast Variant + Vendored Python
Added
- New
plugins/llm-statusline.toast.tsserver plugin that emits the rendered bar as a TUI toast on everysession.idle, instead of writing to the log panel. - Vendored
python/directory: a self-contained copy of the upstream statusline script. The plugin no longer depends on any Claude Code install at the filesystem level. OPENCODE_PROJECT_DIRenvironment variable as an optional override for the folder displayed in the toast.
Changed
- Cache directory moved from
~/.cache/llm-quota-bar/to~/.cache/opencode-llm-statusline/to keep state separate from upstream. .gitignorenow ignorespython/__pycache__/.
Known Limitations
- OpenCode 1.17.8 plugin SDK does not expose tool-call parts; the toast reflects the shell cwd, not the live project the agent is editing.
- OpenCode's
tui.showToastdoes not render ANSI escape codes; colors are stripped before display.
v1.0.0 — Initial Release
Added
- Initial release (
plugins/llm-statusline.ts). - Forwards OpenCode
session.idleevents to asession_tokens.pyscript, writing a Claude-Code-compatible JSONL so the upstream statusline logic (token totals, cache R/W, burn rate, cost, provider quota) can be reused unchanged. - Logs the rendered bar through
client.app.log()(visible in OpenCode's log panel).