-
-
Notifications
You must be signed in to change notification settings - Fork 409
Description
Summary
Please consider adding support for counting archived Codex sessions by default in usage reports.
There is already an open implementation in PR #849.
Why this matters
Right now, Codex totals can miss part of a user's history when sessions have been moved under ~/.codex/archived_sessions.
For users who expect ccusage to reflect their full local Codex usage by default, this leads to undercounted totals unless they explicitly point the tool at archived data.
Proposed behavior
Use both default Codex session locations when no custom session directories are provided:
~/.codex/sessions~/.codex/archived_sessions
The current PR also keeps explicit sessionDirs behavior unchanged and de-duplicates sessions across active and archived directories.
Existing implementation
From the PR description, this change already includes tests for:
- archived-session inclusion by default
- de-duplication across active and archived directories
- unchanged behavior when explicit session directories are provided
Request
Please review PR #849 and consider merging it if the proposed default behavior matches the project direction.