Repository navigation
fix(tui): inline ProgressBar to fix empty home/sidebar (#210) - #211
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #210
Root cause:
@four-bytes/opencode-plugin-lib/tui-componentsships raw untranspiled.jsx. The import fails to load, which takes down the whole TUI module —slots.registernever runs, so home and sidebar render nothing.Fix: Inline the
ProgressBarcomponent locally insrc/progress.tsx(Apache-2.0 attribution kept), same pattern as the existingsrc/spinner.tsx, and swap the import insrc/tui.tsx.Tests: two regression tests in
test/dist-integrity.test.ts— TUI dist must not referencetui-components, anddist/progress.jsxmust 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-componentsimport with a locally inlinedProgressBar..jsx, which fails to load and crashes the whole TUI module before home and sidebar render.ProgressBarintosrc/progress.tsx(Apache-2.0 attribution kept) and updates the import insrc/tui.tsx.tui-componentsand thatdist/progress.jsxis emitted.1.8.5to1.8.6.Written for commit 1a24774. Summary will update on new commits.