MCPcopy Create free account
hub / github.com/MarsWang42/Awel / resetSession

Function resetSession

packages/cli/src/session.ts:166–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 * Resets the session entirely (called on history clear).
165 */
166export function resetSession(): void {
167 session = null;
168 const filePath = sessionPath();
169 if (filePath && existsSync(filePath)) {
170 try { unlinkSync(filePath); } catch { /* ignore */ }
171 }
172}

Callers 3

session.test.tsFile · 0.85
createAgentRouteFunction · 0.85
startServerFunction · 0.85

Calls 1

sessionPathFunction · 0.85

Tested by

no test coverage detected