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
tui worker swallows ALL unhandledRejection/uncaughtException (defects never surface; RPC hangs look like freezes) #396
packages/opencode/src/cli/tui/worker.ts:14-16,115-116: onUnhandledRejection = (_e)=>{} and onUncaughtException = (_e)=>{} are registered for the worker's lifetime. Any defect from Server.listen, Rpc.handleRequest, GlobalBus projection or BackgroundJob never reaches logging, never rejects an RPC call, and never triggers the worker-process crash-restart (isCrash only checks signal/code). The main thread sees an RPC hang / frozen footer instead of rpc.error.
Repro: throw inside any rpc.server handler or leave a rejected promise in an EventV2 listener: the worker stays alive, client.call(...) never settles, the TUI freezes with no toast. Fix size: small (log + Rpc.emit("worker.error") + rethrow/exit for true defects).
Activity
fix(tui): surface worker defects instead of swallowing them (#396)
fix(tui): give worker-error toasts a full GlobalEvent shape and flush…
fix(tui): const-assert toast event type for the SDK GlobalEvent union (…
fix(tui): treat a failed process.send ack as undelivered, keep the cr…
fix(tui): surface worker defects instead of swallowing them (#532)
agenteinstinct1-max commentedon Oct 22, 2026
Fixed by #532, merged to dev-vibecoded as e7d5a5e.