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

Function handleRuntimeCompactionEnd

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

Source from the content-addressed store, hash-verified

158}
159
160function handleRuntimeCompactionEnd(runtime: PiRuntime, runtimeKey: string | null) {
161 setTimeout(() => {
162 cancelLiveThreadUpdate(runtime)
163 void publishThreadUpdate(runtime, 'compaction')
164 void publishRuntimeComposerState(runtime)
165 }, 0)
166 if (runtimeKey && settingsRefreshController.isStale(runtimeKey))
167 void reloadRuntimeSettingsIfSafe(runtimeKey).catch(() => undefined)
168}
169
170function handleRuntimeToolEvent(
171 runtime: PiRuntime,

Callers 1

Calls 4

cancelLiveThreadUpdateFunction · 0.90
publishThreadUpdateFunction · 0.90

Tested by

no test coverage detected