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
This commit is contained in:
Resham Joshi 2026-05-18 05:45:20 -07:00 committed by GitHub
parent 1317af2acf
commit 303c9458cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

3
.gitignore vendored
View file

@ -41,5 +41,8 @@ assets/discord-*.png
# Desktop app experiments
desktop/
# Mac App Store app (private)
appstore/
# WIP / not ready
src/summit.ts

View file

@ -235,6 +235,15 @@ export async function fingerprintFile(filePath: string): Promise<FileFingerprint
const s = await stat(filePath)
return { dev: s.dev, ino: s.ino, mtimeMs: s.mtimeMs, sizeBytes: s.size }
} catch {
const colonIdx = filePath.lastIndexOf(':')
if (colonIdx > 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
}
}