()
| 285 | // cleanup() follows as a safety net for the run() path. |
| 286 | const fallback = setTimeout(() => clear(), 5_000); |
| 287 | const clear = () => { |
| 288 | clearTimeout(fallback); |
| 289 | void this.detachActiveRun(); |
| 290 | this.cleanup(); |
| 291 | }; |
| 292 | |
| 293 | this.activeChannel |
| 294 | .push(STOP_RUN_EVENT, { run_id: this.canonicalRunId }) |