(runtime: PiRuntime, runtimeKey: string | null)
| 150 | } |
| 151 | |
| 152 | function handleRuntimeAgentEnd(runtime: PiRuntime, runtimeKey: string | null) { |
| 153 | cancelLiveThreadUpdate(runtime) |
| 154 | void publishThreadUpdate(runtime, 'end') |
| 155 | if (runtimeKey && settingsRefreshController.isStale(runtimeKey)) |
| 156 | void reloadRuntimeSettingsIfSafe(runtimeKey).catch(() => undefined) |
| 157 | if (runtimeKey) scheduleRuntimeDisposal(runtimeKey, isHowcodeRuntimeBusy) |
| 158 | } |
| 159 | |
| 160 | function handleRuntimeCompactionEnd(runtime: PiRuntime, runtimeKey: string | null) { |
| 161 | setTimeout(() => { |
no test coverage detected