MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / clearSessionMetadata

Function clearSessionMetadata

source code/utils/sessionStorage.ts:2794–2807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2792 * from the previous session does not leak into the new one.
2793 */
2794export function clearSessionMetadata(): void {
2795 const project = getProject()
2796 project.currentSessionTitle = undefined
2797 project.currentSessionTag = undefined
2798 project.currentSessionAgentName = undefined
2799 project.currentSessionAgentColor = undefined
2800 project.currentSessionLastPrompt = undefined
2801 project.currentSessionAgentSetting = undefined
2802 project.currentSessionMode = undefined
2803 project.currentSessionWorktree = undefined
2804 project.currentSessionPrNumber = undefined
2805 project.currentSessionPrUrl = undefined
2806 project.currentSessionPrRepository = undefined
2807}
2808
2809/**
2810 * Re-append cached session metadata (custom title, tag) to the end of the

Callers 2

clearConversationFunction · 0.85
REPLFunction · 0.85

Calls 1

getProjectFunction · 0.85

Tested by

no test coverage detected