You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin syntax/build errors cause black screen with no user-facing error message #13461
When a local plugin file has a syntax error (e.g., unterminated string literal), OpenCode renders a completely black/blank screen on startup with no error message or indication of what went wrong.
The error is logged to ~/.local/share/opencode/log/:
...but nothing is shown to the user in the TUI. The only way to diagnose it is to know the log file location and check manually.
Expected: OpenCode should either display an error message in the TUI (e.g., "Failed to load plugin notifications.ts: Unterminated string literal at line 5"), or gracefully skip the broken plugin and continue loading.
Related: #12192 (same black screen symptom from a different plugin), #12931 (plugin runtime errors corrupting TUI — different phase).
Plugins
Custom local plugin at ~/.config/opencode/plugin/notifications.ts (with a syntax error)
OpenCode version
v1.1.65
Steps to reproduce
Create a plugin file at ~/.config/opencode/plugin/example.ts with a syntax error, e.g.:
@rekram1-node I've been playing with a couple of different approaches towards tackling this issue, but I'm currently undecided on which approach I should go with. Which reaction do you think would be preferable if a bad (syntax errors, other loading errors, or just plain missing) plugin is in the configuration line?
Fatal error, refuse to start with an error message.
Nonfatal error, start but display a toast complaining about the bad plugin(s).
Activity
github-actions commentedon Feb 13, 2026
This issue might be a duplicate of existing issues. Please check:
ariane-emory commentedon Feb 13, 2026
I've observed this myself a few times and did find it it to be irritating, but haven't yet taken a deeper look. I'll try to do so shortly.
fix: handle plugin build/syntax errors gracefully
fix: handle plugin build/syntax errors gracefully
ariane-emory commentedon Feb 17, 2026
@rekram1-node I've been playing with a couple of different approaches towards tackling this issue, but I'm currently undecided on which approach I should go with. Which reaction do you think would be preferable if a bad (syntax errors, other loading errors, or just plain missing) plugin is in the configuration line?
github-actions commentedon Apr 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.