mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-19 16:13:56 +00:00
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:
parent
1317af2acf
commit
303c9458cb
2 changed files with 12 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -41,5 +41,8 @@ assets/discord-*.png
|
|||
# Desktop app experiments
|
||||
desktop/
|
||||
|
||||
# Mac App Store app (private)
|
||||
appstore/
|
||||
|
||||
# WIP / not ready
|
||||
src/summit.ts
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue