Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ccusage/ccusage
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: igorovh/ccusage
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/unified-session-date-window
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on Nov 4, 2026

  1. fix(all): count only in-window Claude usage in unified session reports

    The unified session report built each Claude session from every entry
    and then kept it only when its last activity fell inside the window. A
    session that continued past `--until` vanished with its in-window usage,
    and a session started before `--since` brought its earlier usage along,
    so `ccusage session` disagreed with `ccusage claude session` and the
    focused reports no longer added up to the unified one.
    
    Claude entries are now filtered by date before sessions are built, like
    `ccusage claude session` and the other unified sources. OpenCode
    `claude-agent` rows still match by whole session, so a turn crossing
    midnight is counted once, but only sessions with in-window usage count
    and a row must fall inside the Claude source's date range.
    `DedupedEntries` keeps the survivor index of each merged copy, so a
    copy's session counts on the day of the kept entry, as in the daily
    loader.
    
    Fixes #2016
    igorovh committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    d37bfae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69425f4 View commit details
    Browse the repository at this point in the history
Loading