(active: AgentRunActiveSession, run: AgentRun)
| 3078 | } |
| 3079 | |
| 3080 | private async unregisterChildRun(active: AgentRunActiveSession, run: AgentRun): Promise<void> { |
| 3081 | this.unregisterRun(active, run); |
| 3082 | if (active.activeRuns.size > 0) return; |
| 3083 | await this.settleRunStopOperation(active.sessionId, run); |
| 3084 | const generation = active as BackendGeneration; |
| 3085 | await this.settleBackendGenerationAfterRunExit(generation); |
| 3086 | if (generation.phase === 'active') { |
| 3087 | await this.quarantineBackendGeneration(generation); |
| 3088 | } |
| 3089 | await this.settleBackendGenerationAfterRunExit(generation); |
| 3090 | await this.flushBackendInvalidation(active.sessionId); |
| 3091 | } |
| 3092 | |
| 3093 | private async settleRunStopOperation(sessionId: string, run: AgentRun): Promise<void> { |
| 3094 | const operation = this.stopOperations.get(sessionId); |
no test coverage detected