Repository navigation
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.