Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ onExit
Function
onExit
packages/desktop/src/main/server.ts:118–120 ·
view source on GitHub ↗
(code: number)
Source
from the content-addressed store, hash-verified
116
}
117
}
118
const
onExit = (code: number) => {
119
fail(
new
Error(`Sidecar exited before ready with code ${code}`))
120
}
121
const
cleanup = () => {
122
clearTimeout(timeout)
123
child.off(
"message"
, onMessage)
Callers
nothing calls this directly
Calls
1
fail
Function · 0.70
Tested by
no test coverage detected