MCPcopy Create free account
hub / github.com/freecodexyz/free-code / clearSessionMetadata

Function clearSessionMetadata

src/utils/sessionStorage.ts:2792–2805  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2790 * from the previous session does not leak into the new one.
2791 */
2792export function clearSessionMetadata(): void {
2793 const project = getProject()
2794 project.currentSessionTitle = undefined
2795 project.currentSessionTag = undefined
2796 project.currentSessionAgentName = undefined
2797 project.currentSessionAgentColor = undefined
2798 project.currentSessionLastPrompt = undefined
2799 project.currentSessionAgentSetting = undefined
2800 project.currentSessionMode = undefined
2801 project.currentSessionWorktree = undefined
2802 project.currentSessionPrNumber = undefined
2803 project.currentSessionPrUrl = undefined
2804 project.currentSessionPrRepository = undefined
2805}
2806
2807/**
2808 * 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