Skip to content

Commit e16d64d

Browse files
ryoppippichrissound
andcommitted
docs(antigravity): explain skipped database warnings
Co-authored-by: chrissound <[email protected]>
1 parent 792b719 commit e16d64d

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎docs/guide/antigravity/index.md‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ ANTIGRAVITY_DATA_DIR="$HOME/.gemini/antigravity-cli,/backup/antigravity" \
4444
Only `.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`
4646
schema 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
9495
databases 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

Comments
 (0)