Skip to content

TUI hangs on black screen when plugin dependencies are missing #14433

@elithrar

Description

@elithrar

When a plugin's dependencies can't be resolved (e.g. node_modules doesn't exist for @opencode-ai/plugin), the TUI stalls on a black screen indefinitely. No error is shown.

opencode run --print-logs surfaces the underlying error:

ERROR service=default name=ResolveMessage message=Cannot find module '@opencode-ai/plugin' from '/Users/matt/repos/dotfiles/.config/opencode/plugin/git-worktree.ts'

The import() failure rejects the state() initializer promise, which State.create() caches permanently. Every subsequent API request returns the same rejection, and the TUI never transitions past the loading screen.

Fix: #14432

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions