()
| 442 | } |
| 443 | |
| 444 | async stop(): Promise<void> { |
| 445 | this.connected = false; |
| 446 | this.socket?.close(); |
| 447 | this.socket = null; |
| 448 | this.childStartError = null; |
| 449 | this.childStderrTail = []; |
| 450 | const child = this.child; |
| 451 | if (child && child.exitCode === null) { |
| 452 | await terminateChildProcess(child, this.platform).catch(() => {}); |
| 453 | } |
| 454 | this.child = null; |
| 455 | this.pendingApprovals.clear(); |
| 456 | this.approvedExecutions.clear(); |
| 457 | this.rejectPending(new Error('Codex app client stopped')); |
| 458 | } |
| 459 | |
| 460 | async listThreads({ |
| 461 | limit = 20, |
nothing calls this directly
no test coverage detected