MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / clearMessageHistory

Function clearMessageHistory

cli/src/utils/message-history.ts:128–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 * Clear message history from file system
127 */
128export const clearMessageHistory = (): void => {
129 const historyPath = getMessageHistoryPath()
130
131 try {
132 if (fs.existsSync(historyPath)) {
133 fs.unlinkSync(historyPath)
134 }
135 } catch (error) {
136 logger.error(
137 {
138 error: error instanceof Error ? error.message : String(error),
139 },
140 'Error clearing message history',
141 )
142 }
143}

Callers

nothing calls this directly

Calls 1

getMessageHistoryPathFunction · 0.85

Tested by

no test coverage detected