-
Notifications
You must be signed in to change notification settings - Fork 15.1k
TUI hangs on black screen when plugin dependencies are missing #14433
Copy link
Copy link
Closed
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)