From e14a6d1ef09c75813b951a756a7ad1a28322dd06 Mon Sep 17 00:00:00 2001 From: "Brennan Wilkes (Text Groove)" Date: Sat, 31 Jan 2026 17:26:17 -0800 Subject: [PATCH] fix: Recent generation --- tools/build_viz_recent.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/build_viz_recent.js b/tools/build_viz_recent.js index 654b30d..38a7ff9 100755 --- a/tools/build_viz_recent.js +++ b/tools/build_viz_recent.js @@ -336,6 +336,13 @@ function main() { nextObj = gitShowJson(toSha, file); } + // NEW: if the DB file itself doesn't exist at "to", skip (prevents mass "removed") + const nextExists = + toSha === "WORKTREE" + ? fs.existsSync(path.join(repoRoot, file)) + : gitFileExistsAtSha(toSha, file); + if (!nextExists) continue; + if (!prevObj && !nextObj) continue; const storeLabel = String(nextObj?.storeLabel || nextObj?.store || prevObj?.storeLabel || prevObj?.store || ""); @@ -426,6 +433,7 @@ function main() { }); } } + } items.sort((a, b) => String(b.ts).localeCompare(String(a.ts)));