()
| 184 | } |
| 185 | |
| 186 | #abortHandler(): void { |
| 187 | // On 'interrupt' (user submitted a new message), don't kill — let the |
| 188 | // caller background the process so the model can see partial output. |
| 189 | if (this.#abortSignal.reason === 'interrupt') { |
| 190 | return |
| 191 | } |
| 192 | this.kill() |
| 193 | } |
| 194 | |
| 195 | #exitHandler(code: number | null, signal: NodeJS.Signals | null): void { |
| 196 | const exitCode = |