anomalyco / anomalyco/opencode
[Windows] Global npm installation crashes with "Orphan text error" due to plugin-gentleman@latest dependency
@Hona is already working on this.
Since Aug 10, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
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
Operating System
Windows 10.0.26100 (x64)
Terminal
Windows Powershell
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.