Skip to content

The agent that grows with you

fix(desktop): type log backup indexes as numbers

alt-glitch55ffebe337ee
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index 1cb25991328..6ecd8ec93bd 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -827,7 +827,7 @@ const DESKTOP_LOG_BUFFER_MAX_CHARS = 64 * 1024
const DESKTOP_LOG_MAX_BYTES = 10 * 1024 * 1024
const DESKTOP_LOG_BACKUP_COUNT = 3
const DESKTOP_LOG_DISCARD_BYTES = DESKTOP_LOG_MAX_BYTES * 4
-const desktopLogBackupPath = (n: string) => `${DESKTOP_LOG_PATH}.${n}`
+const desktopLogBackupPath = (n: number) => `${DESKTOP_LOG_PATH}.${n}`
const BOOT_FAKE_MODE = process.env.HERMES_DESKTOP_BOOT_FAKE === '1'
const BOOT_FAKE_ERROR = process.env.HERMES_DESKTOP_BOOT_FAKE_ERROR || ''
// Automated teardown (Playwright's app.close(), harness scripts) quits with