MCPcopy Index your code
hub / github.com/anomalyco/opencode / stop

Function stop

packages/desktop/src/main/sidecar.ts:73–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73async function stop() {
74 try {
75 await listener?.stop()
76 } finally {
77 listener = undefined
78 parentPort.postMessage({ type: "stopped" })
79 setImmediate(() => process.exit(0))
80 }
81}
82
83function prepareSidecarEnv(password: string, userDataPath: string) {
84 Object.assign(process.env, {

Callers 1

sidecar.tsFile · 0.70

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected