Skip to content

v0.6.0

Choose a tag to compare

@kaanchinar kaanchinar released this 03 Oct 08:32
· 20 commits to main since this release

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 calls setup (sidebar panel, /usage command and dialog, session.idle refresh via ctx.data.on), while OpenCode 1 still reads tui.
  • Added src/v2-tui.ts, a structural mirror of the OpenCode 2 TUI context (@opencode/plugin@2.0.20) that adapts theme tokens, SessionMessageInfo, and ui.dialog back 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.