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 init and config hook can block the opencode layer indefinitely #46161
Title:
Plugin init and config hook can block the opencode layer indefinitely
Description: packages/opencode/src/plugin/index.ts loads each internal plugin with await plugin(input)
and notifies each loaded hook with (hook as any).config?.(cfg). Neither call has a timeout
or any per-plugin log line about which plugin is currently being awaited. When a plugin
returns a promise that never resolves (sync throw inside a never-resolving promise, broken
native binding, etc.) the entire plugin layer init blocks until the process is killed; the
existing logError only fires on rejection, not on hang.
The npm-install-related hang from #33905 was fixed in #33905 itself. The two call sites in plugin/index.ts still have no timeout and are unrelated to that fix.
Activity
Tarquinen commentedon Oct 20, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊