MCPcopy Create free account
hub / github.com/continuedev/continue / clear

Method clear

extensions/cli/src/session.ts:128–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 clear(): void {
129 this.currentSession = null;
130 this.sessionUsage = {
131 totalCost: 0,
132 promptTokens: 0,
133 completionTokens: 0,
134 promptTokensDetails: {
135 cachedTokens: 0,
136 cacheWriteTokens: 0,
137 },
138 };
139 }
140
141 hasSession(): boolean {
142 return this.currentSession !== null;

Callers 2

clearSessionFunction · 0.45
startNewSessionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected