fix: clear thumbnail cache and temp dirs on new session

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 11:18:14 -04:00
parent ab053edd14
commit 8013ef7c55
6 changed files with 39 additions and 0 deletions

View File

@@ -4,6 +4,10 @@ import { timeToX, type TimelineState } from './renderer';
const imageCache = new Map<string, HTMLImageElement>();
export function clearThumbnailCache(): void {
imageCache.clear();
}
const TARGET_SPACING_PX = 100;
function getImagePath(dir: string, frameIndex: number): string {