()
| 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 = |