@@ -44,8 +44,9 @@ ANTIGRAVITY_DATA_DIR="$HOME/.gemini/antigravity-cli,/backup/antigravity" \
4444Only ` .db ` files are read. ccusage opens them read-only and reads the
4545` gen_metadata ` rows in ascending ` idx ` order. When present, the real ` steps `
4646schema contributes step and retry usage, and ` trajectory_metadata_blob ` supplies
47- the timestamp fallback. SQLite, row-iteration, and protobuf failures are
48- reported instead of becoming empty or partial reports.
47+ the timestamp fallback. Empty or unreadable databases are skipped with a warning
48+ that names the file. A database contributes usage only after its full read
49+ succeeds, and other readable databases remain in the report.
4950
5051## What Gets Calculated
5152
@@ -94,10 +95,11 @@ set `ANTIGRAVITY_DATA_DIR` to the directory containing `conversations/`. The
9495databases must contain the ` gen_metadata ` table.
9596:::
9697
97- ::: details A database error is reported
98- ccusage does not turn unreadable or incomplete SQLite databases into an empty
99- report. Check the path in the error and ensure the database is readable and has
100- the expected ` gen_metadata (idx, data) ` schema.
98+ ::: details A database warning is shown
99+ ccusage skips empty or unreadable databases and excludes all usage from that
100+ file. Check the filename in the warning and ensure the database is readable and
101+ has the expected ` gen_metadata (idx, data) ` schema. Other readable databases
102+ remain in the report.
101103:::
102104
103105::: details Costs show as zero
0 commit comments