From 303c9458cbbf4a275f4d8407e907b20de33a372c Mon Sep 17 00:00:00 2001 From: Resham Joshi <65915470+iamtoruk@users.noreply.github.com> Date: Mon, 18 May 2026 05:45:20 -0700 Subject: [PATCH] Fix OpenCode/Goose returning 0 sessions on fresh install (#347) * Add CodeBurn Pro Mac App Store app SwiftUI MenuBarExtra with litellm-snapshot pricing, Claude/Codex/Copilot parsers, session discovery, auto-refresh timer, and dashboard UI matching the real menubar design. * Add appstore/ to .gitignore Private Mac App Store build, not for the public repo. * Fix OpenCode/Goose returning 0 sessions on fresh install SQLite-based providers use compound paths (db.path:sessionId) which caused fingerprintFile to fail stat() and silently skip all sessions. Fall back to stat on the DB file when the full compound path fails. Fixes #346 --- .gitignore | 3 +++ src/session-cache.ts | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 431bdc2..b71c159 100644 --- a/.gitignore +++ b/.gitignore @@ -41,5 +41,8 @@ assets/discord-*.png # Desktop app experiments desktop/ +# Mac App Store app (private) +appstore/ + # WIP / not ready src/summit.ts diff --git a/src/session-cache.ts b/src/session-cache.ts index 7656818..2537a7d 100644 --- a/src/session-cache.ts +++ b/src/session-cache.ts @@ -235,6 +235,15 @@ export async function fingerprintFile(filePath: string): Promise 0) { + try { + const s = await stat(filePath.slice(0, colonIdx)) + return { dev: s.dev, ino: s.ino, mtimeMs: s.mtimeMs, sizeBytes: s.size } + } catch { + return null + } + } return null } }