Skip to content

[Windows] Global npm installation crashes with "Orphan text error" due to plugin-gentleman@latest dependency #41595

Description

Description

When installing opencode-ai globally via npm (npm install -g opencode-ai), running the opencode command causes the TUI to crash immediately with the following error:
Orphan text error: "" must have a as a parent: box-XXX above text-node-XXX

Opencode Version:
1.18.16 (global npm install)

Operating System:
Windows 10.0.26100 (x64)

Plugins

plugin-gentleman@latest

OpenCode version

1.18.16 (global npm install)

Steps to reproduce

I tracked down the root cause. The global opencode-ai binary forces a dependency on plugin-gentleman@latest. Unfortunately, @latest relies on @opentui/solid which generates this rendering bug.
Even after running:

npm uninstall -g opencode-ai

npm cache clean --force

Deleting C:\Users<user>.cache\opencode manually
...the bug persists because opencode-ai always re-downloads the broken plugin-gentleman@latest.

The only successful workaround is using the OpenCode Desktop Installer.exe, which is pre-packaged and not affected by this @latest dynamic fetch.
Please update opencode-ai to pin plugin-gentleman to a specific stable version (e.g., 0.1.0 instead of @latest) to resolve this globally.

Screenshot and/or share link

Image

https://github.com/anomalyco/opencode/issues/new?template=bug-report.yml&title=TUI+crash%3A+Orphan+text+error%3A+%22%22+must+have+a+%3Ctext%3E+as+a+parent%3A+box-392+above+text-node-824&opencode-version=1.18.16&os=Windows+10.0.26100+%28x64%29&terminal=unknown&reproduce=Reported+automatically+from+the+opencode+crash+screen.+If+you+can%2C+describe+what+you+were+doing+when+it+crashed.&description=The+opencode+TUI+crashed+with+an+unexpected+error.%0A%0A**Error%3A**+Orphan+text+error%3A+%22%22+must+have+a+%3Ctext%3E+as+a+parent%3A+box-392+above+text-node-824%0A%0A**Stack+trace%3A**%0A%60%60%60%0AError%3A+Orphan+text+error%3A+%22%22+must+have+a+%3Ctext%3E+as+a+parent%3A+box-392+above+text-node-824%0A++++at+M6+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A4970%29%0A++++at+F+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A3689%29%0A++++at+W+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A2212%29%0A++++at+%3Canonymous%3E+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A3792%29%0A++++at+mJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9650%29%0A++++at+p+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9431%29%0A++++at+dJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A3567%29%0A++++at+w+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A3775%29%0A++++at+spread+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A4105%29%0A++++at+createIntrinsicElement+%28C%3A%5CUsers%5CChristianOrtegaOchoa%5C.cache%5Copencode%5Cpackages%5Cplugin-gentleman%40latest%5Cnode_modules%5C%40opentui%5Csolid%5Cjsx-runtime.js%3A14%3A5%29%0A++++at+b+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A6673%29%0A++++at+F+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A17048%29%0A++++at+mJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9650%29%0A++++at+p+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9431%29%0A++++at+F+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A3993%29%0A++++at+d+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A3135%29%0A++++at+%3Canonymous%3E+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A15544%29%0A++++at+b+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A6673%29%0A++++at+mJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9650%29%0A++++at+p+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9431%29%0A++++at+F+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A3993%29%0A++++at+D9+%28B%3A%2F%7EBUN%2Froot%2Fchunk-wyqnfhh4.js%3A71%3A17601%29%0A++++at+b+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A6673%29%0A++++at+children+%28B%3A%2F%7EBUN%2Froot%2Fchunk-56jy4fhb.js%3A45%3A26865%29%0A++++at+%3Canonymous%3E+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A19878%29%0A++++at+mJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9650%29%0A++++at+p+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A9431%29%0A++++at+ZJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A11057%29%0A++++at+rJ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A11931%29%0A++++at+yZ+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A11333%29%0A++++at+w+%28B%3A%2F%7EBUN%2Froot%2Fchunk-n374cfc4.js%3A2%3A11238%29%0A++++at+s+%28B%3A%2F%7EBUN%2Froot%2Fchunk-km52wc0g.js%3A2%3A12617%29%0A%60%60%60

Operating System

Windows 10.0.26100 (x64)

Terminal

Windows Powershell

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions