MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / clear

Method clear

src/core/agent.ts:265–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 }
264
265 clear(): void {
266 this.messages = []
267 this.todos = ""
268 this.firstMessageSent = false
269 this.totalCost = 0
270 this.contextTokens = 0
271 this.title = ""
272 this.pendingStartContext = ""
273 this.sessionStarted = false
274 this.stopHookActive = false
275 }
276
277 /** Write the current conversation to the sessions directory. */
278 private persist(): void {

Callers 3

rollbackForRetryMethod · 0.80
startMethod · 0.80
stopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected