Skip to content

v20 monthly report shows per day rows by default #1109

@shekharnwagh

Description

@shekharnwagh

What happened?

Since v20.0.0, ccusage monthly shows extra per-model/day rows under each monthly aggregate by default.

Before v20, the monthly report showed only month-level rows with an agent subtotal. In v20.0.0 and v20.0.1, the all-agent monthly table expands model-level for each day automatically, which makes the report much noisier and feels closer to a daily view.

This appears to affect the table output only. The JSON output still returns one monthly object per period, with model details nested under modelBreakdowns.

Steps to reproduce

  1. Use ccusage@20.0.0 or ccusage@20.0.1
  2. Run:
npx ccusage@20.0.1 monthly
  1. Observe that the monthly table includes extra per-model rows for each day. For comparison, ccusage@19.0.3 monthly only showed the month aggregate plus the agent subtotal.

Expected behavior

ccusage monthly should show month-level aggregate rows by default.

Per-model for each day, rows should either require an explicit breakdown option, or there should be a way to disable them.

Actual behavior

ccusage monthly expands per-model for each day rows by default in v20.

Version

Reproduced with:

  • ccusage@20.0.0
  • ccusage@20.0.1

Last known version without the expanded model rows:

  • ccusage@19.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions