MCPcopy
hub / github.com/codeaashu/claude-code / resetCostState

Function resetCostState

src/bootstrap/state.ts:864–875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

862}
863
864export function resetCostState(): void {
865 STATE.totalCostUSD = 0
866 STATE.totalAPIDuration = 0
867 STATE.totalAPIDurationWithoutRetries = 0
868 STATE.totalToolDuration = 0
869 STATE.startTime = Date.now()
870 STATE.totalLinesAdded = 0
871 STATE.totalLinesRemoved = 0
872 STATE.hasUnknownModelCost = false
873 STATE.modelUsage = {}
874 STATE.promptId = null
875}
876
877/**
878 * Sets cost state values for session restore.

Callers 2

callFunction · 0.85
REPLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected