MCPcopy Create free account
hub / github.com/NanmiCoder/cc-haha / #abortHandler

Method #abortHandler

src/utils/ShellCommand.ts:199–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 #abortHandler(): void {
200 // On 'interrupt' (user submitted a new message), don't kill — let the
201 // caller background the process so the model can see partial output.
202 if (this.#abortSignal.reason === 'interrupt') {
203 return
204 }
205 this.kill()
206 }
207
208 #exitHandler(code: number | null, signal: NodeJS.Signals | null): void {
209 const exitCode =

Callers

nothing calls this directly

Calls 1

killMethod · 0.95

Tested by

no test coverage detected