fix(tui): inline ProgressBar to fix empty home/sidebar (#210)

Merged
FO
14d ago
+70-3

Closes #210

Root cause: @four-bytes/opencode-plugin-lib/tui-components ships raw untranspiled .jsx. The import fails to load, which takes down the whole TUI module — slots.register never runs, so home and sidebar render nothing.

Fix: Inline the ProgressBar component locally in src/progress.tsx (Apache-2.0 attribution kept), same pattern as the existing src/spinner.tsx, and swap the import in src/tui.tsx.

Tests: two regression tests in test/dist-integrity.test.ts — TUI dist must not reference tui-components, and dist/progress.jsx must exist.

Version bumped 1.8.5 → 1.8.6.


Summary by cubic

Fixes the empty home/sidebar in the TUI by replacing the broken @four-bytes/opencode-plugin-lib/tui-components import with a locally inlined ProgressBar.

  • The dependency ships raw untranspiled .jsx, which fails to load and crashes the whole TUI module before home and sidebar render.
  • Copies ProgressBar into src/progress.tsx (Apache-2.0 attribution kept) and updates the import in src/tui.tsx.
  • Adds two regression tests ensuring the TUI dist no longer references tui-components and that dist/progress.jsx is emitted.
  • Bumps version from 1.8.5 to 1.8.6.