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) <noreply@anthropic.com>
This commit is contained in:
Ethan Hurst 2026-03-17 12:13:02 +10:00
parent 04721cb20e
commit 0dd0a1a4d2

View file

@ -567,6 +567,7 @@ function startDispatchGapWatchdog(ctx: ExtensionContext, pi: ExtensionAPI): void
export async function stopAuto(ctx?: ExtensionContext, pi?: ExtensionAPI, reason?: string): Promise<void> {
if (!active && !paused) return;
const reasonSuffix = reason ? `${reason}` : "";
clearUnitTimeout();
if (lockBase()) clearLock(lockBase());
clearSkillSnapshot();