diff --git a/src/features/boulder-state/storage.test.ts b/src/features/boulder-state/storage.test.ts index 2fe0438ad..aa7bf1858 100644 --- a/src/features/boulder-state/storage.test.ts +++ b/src/features/boulder-state/storage.test.ts @@ -888,7 +888,8 @@ describe("boulder-state", () => { const progress = getPlanProgress("/non/existent/file.md") // then expect(progress.total).toBe(0) - expect(progress.isComplete).toBe(true) + expect(progress.completed).toBe(0) + expect(progress.isComplete).toBe(false) }) test("should support asterisk bullet top-level tasks", () => { diff --git a/src/features/boulder-state/storage.ts b/src/features/boulder-state/storage.ts index a07f2a40e..2eeda2436 100644 --- a/src/features/boulder-state/storage.ts +++ b/src/features/boulder-state/storage.ts @@ -395,7 +395,7 @@ type ProgressSection = "todo" | "final-wave" | "other" */ export function getPlanProgress(planPath: string): PlanProgress { if (!existsSync(planPath)) { - return { total: 0, completed: 0, isComplete: true } + return { total: 0, completed: 0, isComplete: false } } try { @@ -416,7 +416,7 @@ export function getPlanProgress(planPath: string): PlanProgress { // Simple plan: count all top-level checkboxes anywhere return getSimplePlanProgress(content) } catch { - return { total: 0, completed: 0, isComplete: true } + return { total: 0, completed: 0, isComplete: false } } }