Skip to content

Fix OpenCode/Goose returning 0 sessions on fresh install#347

Merged
iamtoruk merged 3 commits into
mainfrom
fix/compound-path-fingerprint
May 18, 2026
Merged

Fix OpenCode/Goose returning 0 sessions on fresh install#347
iamtoruk merged 3 commits into
mainfrom
fix/compound-path-fingerprint

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

Summary

  • SQLite-based providers (OpenCode, Goose) use compound paths like opencode.db:ses_abc123 to identify sessions
  • fingerprintFile() calls stat() on the full compound path, which fails with ENOENT since no file exists at that literal path
  • On fresh installs (no session cache), every session is silently skipped, resulting in $0.00 / 0 calls
  • Fix: when stat() fails, strip the :sessionId suffix and stat the underlying DB file instead

Test plan

  • tsc --noEmit clean
  • 860/860 tests pass

Fixes #346

iamtoruk added 3 commits May 18, 2026 05:41
SwiftUI MenuBarExtra with litellm-snapshot pricing, Claude/Codex/Copilot
parsers, session discovery, auto-refresh timer, and dashboard UI matching
the real menubar design.
Private Mac App Store build, not for the public repo.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCode provider returns 0 sessions on fresh install.

1 participant