MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / handleRuntimeAgentEnd

Function handleRuntimeAgentEnd

desktop/runtime/runtime-registry.ts:152–158  ·  view source on GitHub ↗
(runtime: PiRuntime, runtimeKey: string | null)

Source from the content-addressed store, hash-verified

150}
151
152function 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
160function handleRuntimeCompactionEnd(runtime: PiRuntime, runtimeKey: string | null) {
161 setTimeout(() => {

Callers 1

Calls 4

cancelLiveThreadUpdateFunction · 0.90
publishThreadUpdateFunction · 0.90
scheduleRuntimeDisposalFunction · 0.90

Tested by

no test coverage detected