Skip to content

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

Merged
four-bytes-robby merged 1 commit into
mainfrom
fix/210-tui-home-sidebar-empty
Nov 16, 2026
Merged

four-bytes-robby merged 1 commit into
mainfrom
fix/210-tui-home-sidebar-empty

Conversation

@four-bytes-robby

@four-bytes-robby four-bytes-robby commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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.

Written for commit 1a24774. Summary will update on new commits.

View guided diff Turn on auto-fix

@four-bytes-robby
four-bytes-robby merged commit 9be7431 into main Nov 16, 2026
1 of 2 checks passed
@four-bytes-robby
four-bytes-robby deleted the fix/210-tui-home-sidebar-empty branch November 16, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] TUI home + sidebar render nothing — ProgressBar import from tui-components breaks module load

1 participant