MCPcopy
hub / github.com/CodebuffAI/codebuff / clearErrorImageTimer

Function clearErrorImageTimer

cli/src/utils/pending-attachments.ts:173–179  ·  view source on GitHub ↗
(imagePath: string)

Source from the content-addressed store, hash-verified

171 * Call this when manually removing an image to prevent memory leaks.
172 */
173export function clearErrorImageTimer(imagePath: string): void {
174 const timer = errorImageTimers.get(imagePath)
175 if (timer) {
176 clearTimeout(timer)
177 errorImageTimers.delete(imagePath)
178 }
179}
180
181/**
182 * Validate and add an image from a file path.

Callers 1

chat-store.tsFile · 0.85

Calls 2

deleteMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected