MCPcopy Create free account
hub / github.com/backnotprop/plannotator / unregisterSession

Function unregisterSession

packages/server/sessions.ts:61–68  ·  view source on GitHub ↗
(pid: number = process.pid)

Source from the content-addressed store, hash-verified

59 * Unregister the current process's session. No-op if not found.
60 */
61export function unregisterSession(pid: number = process.pid): void {
62 const filePath = sessionPath(pid);
63 try {
64 if (existsSync(filePath)) unlinkSync(filePath);
65 } catch {
66 // Ignore delete failures
67 }
68}
69
70/**
71 * List all active sessions. Automatically removes stale entries.

Callers 1

index.tsFile · 0.90

Calls 1

sessionPathFunction · 0.85

Tested by

no test coverage detected