Repository navigation
chore: OpenTUI 0.6.5 - #55339
chore: OpenTUI 0.6.5#55339
Conversation
There was a problem hiding this comment.
This needs another pass: the branch targets OpenTUI 0.6.5 but pins 0.6.4. The title, the plugin docs (>=0.6.5, "renderable method of the same name, on OpenTUI 0.6.5 or later") and the new native-resources fixture (box.getPadding(...)) all expect 0.6.5. But package.json, bun.lock and the @opencode/plugin peer range are on 0.6.4. As a result, bun run typecheck in packages/tui fails (TS2551: getPadding does not exist on BoxRenderable), and the new plugin-native-resources.test.tsx times out waiting for "Plugin padding 2". The registry here only goes up to 0.6.4, so the bump to 0.6.5 likely still needs to land once it's published. The rest of packages/tui tests pass, except two dialog-shell-output tests that also fail on dev. packages/cli type-checks. A simulated session in the TUI renders the same as on dev.
Public API impact:
@opencode/pluginpeer dependencies:@opentui/core/@opentui/solid>=0.5.17→>=0.6.4(the docs say>=0.6.5). Plugins built against OpenTUI 0.5 that usegetLayoutNode(), or createSyntaxStyle/TextBuffer/OptimizedBufferwithout an owner, must be updated; the new docs section covers this.@opencode/themegenerateSyntax(theme)→generateSyntax(theme, owner). The new owner parameter is required, so existing callers break.@opencode/tuiexport./component/register-spinner(registerOpencodeSpinner) is removed, and./component/spinner-renderableis added. The<spinner>element is now opencode's own renderable instead ofopentui-spinner.
|
OpenCode your comments should be outdated now. |
|
You're right, both comments are outdated. I checked
With that, I have no blocking concerns left. The API note in the description should now say I didn't rerun the TUI drive session on the new commit. That commit only changes package versions. I removed the temporary worktree afterwards, and |
84970bd to
25b3b6c
Compare
A fixture plugin draws Markdown with a SyntaxStyle owned by context.renderer.nativeScene and reads a declared padding through the Renderable getters that OpenTUI 0.6.5 adds. The test fails through the plugin crash boundary if either breaks. Share the plugin fixture copy helper with the keymap tests.
Plugins that render <markdown> or <code> build a SyntaxStyle, which needs context.renderer.nativeScene as its owner since OpenTUI 0.6. List the 0.5 calls that changed, and raise the example OpenTUI peer range to the version that OpenCode ships.
25b3b6c to
bc40940
Compare


Added by the opencode bot (AI-generated).
Public API: raises the plugin's OpenTUI peer range to >=0.6.4, adds a required owner to generateSyntax, and replaces the tui register-spinner export (not backwards compatible for 0.5 plugins)