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

Function markStale

desktop/runtime/settings-refresh.ts:157–165  ·  view source on GitHub ↗
(sessionPath: string | null | undefined)

Source from the content-addressed store, hash-verified

155 }
156
157 function markStale(sessionPath: string | null | undefined) {
158 const runtimeKey = getPersistedSessionPath(sessionPath ?? null)
159 if (!runtimeKey) {
160 return
161 }
162
163 staleGenerations.set(runtimeKey, (staleGenerations.get(runtimeKey) ?? 0) + 1)
164 void reloadIfSafe(runtimeKey).catch(() => undefined)
165 }
166
167 function markStaleForProject(projectPath?: string | undefined | null | undefined) {
168 if (projectPath !== null && projectPath !== undefined && projectPath.trim().length === 0) {

Callers

nothing calls this directly

Calls 3

getPersistedSessionPathFunction · 0.90
reloadIfSafeFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected