From 0dd0a1a4d2be66d0ea34c64559b8a4d3689a97aa Mon Sep 17 00:00:00 2001 From: Ethan Hurst Date: Tue, 17 Mar 2026 12:13:02 +1000 Subject: [PATCH] fix: add missing reasonSuffix declaration in stopAuto The reason parameter was added to stopAuto() but the reasonSuffix variable derived from it was never declared, causing TS2304 errors. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/resources/extensions/gsd/auto.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resources/extensions/gsd/auto.ts b/src/resources/extensions/gsd/auto.ts index a70c8bf82..9a764b8b7 100644 --- a/src/resources/extensions/gsd/auto.ts +++ b/src/resources/extensions/gsd/auto.ts @@ -567,6 +567,7 @@ function startDispatchGapWatchdog(ctx: ExtensionContext, pi: ExtensionAPI): void export async function stopAuto(ctx?: ExtensionContext, pi?: ExtensionAPI, reason?: string): Promise { if (!active && !paused) return; + const reasonSuffix = reason ? ` — ${reason}` : ""; clearUnitTimeout(); if (lockBase()) clearLock(lockBase()); clearSkillSnapshot();