fix: handle first run with no previous source.jsonl

This commit is contained in:
user 2026-07-20 12:30:30 -03:00
parent 01d2f914b2
commit 06985acff3

View file

@ -13,7 +13,7 @@ function parseSource(text: string) {
async function diffCode() {
if (!prevFiles.has("source.jsonl")) {
throw new Error("Missing prevFile: source.jsonl");
return;
}
const oldCode = parseSource(new TextDecoder().decode(prevFiles.get("source.jsonl")));