MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / sendExit

Function sendExit

projects/electron/src/modules/code/pty.ts:181–191  ·  view source on GitHub ↗
(ptyId: string, exitCode: number)

Source from the content-addressed store, hash-verified

179}
180
181function sendExit(ptyId: string, exitCode: number): void {
182 const p = activePtys.get(ptyId)
183 if (!p) return
184
185 p.exited = true
186 p.exitCode = exitCode
187
188 emitLifecycle({ type: "exit", ptyId, exitCode })
189
190 scheduleCleanup(ptyId)
191}
192
193async function handleSpawn(params: SpawnParams): Promise<SpawnResponse> {
194 logger.info("[Pty:spawn] Starting", JSON.stringify({ ptyId: params.ptyId, cwd: params.cwd, cols: params.cols, rows: params.rows }))

Callers 1

handleSpawnFunction · 0.70

Calls 3

emitLifecycleFunction · 0.70
scheduleCleanupFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected