Skip to content

Add Goose provider, fix Codex fork dedup#193

Merged
iamtoruk merged 1 commit intomainfrom
feat/goose-provider
May 2, 2026
Merged

Add Goose provider, fix Codex fork dedup#193
iamtoruk merged 1 commit intomainfrom
feat/goose-provider

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

@iamtoruk iamtoruk commented May 2, 2026

Summary

  • Add Goose AI agent as a new provider (SQLite-based, lazy-loaded)
  • Fix Codex dedup key using file path instead of sessionId, which double-counted tokens on forked/worktree sessions

Test plan

  • 419/419 tests pass
  • Goose data shows in CLI and menubar JSON
  • Edge cases tested: NULL timestamps, zero tokens, malformed JSON, huge token counts, missing DB
  • No performance impact (2.55s with vs 2.53s without)
  • Codex dedup key now uses sessionId — forks share same key

Goose: read token usage from ~/.local/share/goose/sessions/sessions.db.
Lazy-loaded, zero overhead for non-Goose users.

Codex: use sessionId instead of file path in dedup key so forked
sessions sharing the same session_id don't double-count tokens.
@iamtoruk iamtoruk merged commit 3ea4a62 into main May 2, 2026
3 checks passed
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.

1 participant