codeburn/tests/fixtures
Resham Joshi 253c9fe85a
fix(antigravity): count cache reads and price the standalone app's model (#1655)
* fix(antigravity): count cache reads and price the standalone app's model

The standalone Antigravity app (2.19) stores usage as ModelUsageStats in
gen_metadata. Field 5 (cache_read_tokens) was never read, on the SQLite
path or the RPC path, so every cached prompt token was dropped. Fields 9
and 10 are thinking and response output, the reverse of what the SQLite
path assumed. The rows carry only MODEL_PLACEHOLDER_M16 and
"gemini-pro-default", so the model priced at $0.

Read cache read (and cache write) in both paths, read 9/10 in the right
order, drop the input fallback to field 1 (the model enum), and map the
placeholders seen in the app's own model catalog, flagged as estimated.
Bump the antigravity results cache, its parse version and the daily cache.

* fix(antigravity): keep .pb history across the cache bump, step times, 200k tier

With the results cache at v8 and Antigravity closed, .pb cascades had no
entry and no server, so they vanished until the app was next opened.
Serve the v7 entry meanwhile, stored with mtimeMs -1, and preload the
results cache so the session cache reparses such sources and the next run
with the server up re-fetches them with cache reads.

Standalone .db rows without created_at take their first step's time
(steps.metadata #1), which equals created_at wherever both exist, instead
of the file mtime.

Price antigravity at the Gemini long-context tier: add it to
TIERED_PRICING_PROVIDERS and pass the provider at both calculateCost sites.
2026-10-06 20:58:31 +02:00
..
antigravity-cli-current fix(antigravity): read current agy antigravity-cli on-disk layout (#541) 2026-06-22 01:08:44 +02:00
antigravity-standalone fix(antigravity): count cache reads and price the standalone app's model (#1655) 2026-10-06 20:58:31 +02:00
claude Count Claude queued prompts as turns (#1582) 2026-10-02 11:48:12 +02:00
copilot fix(copilot): count agent-host requests and their output (#1651) 2026-10-06 18:03:51 +02:00
cursor-agent/workspace-less/projects/agent-transcripts/1031d227-0c67-4e17-8954-0b6e2b3322f0 fix(cursor-agent): ingest workspace-less CLI transcript layout (#542) 2026-06-22 00:55:01 +02:00
dsh Read DSH session format v4 written by dsh 0.2.0-rc.2 (#1612) 2026-10-05 11:54:55 +02:00
open-design/namespaces/release-stable/data/runs feat(providers): add open-design provider for per-model usage tracking (#559) 2026-06-28 19:17:23 +02:00
security test(security): add failing test for HIGH-1 prototype pollution 2026-04-17 08:32:18 +02:00
cache-refresh-corrupt-owner.ts fix(cache): recover a corrupt session-refresh lock instead of freezing ingestion 2026-07-30 13:06:25 +05:30
cache-refresh-slow-owner.ts fix(cache): recover a corrupt session-refresh lock instead of freezing ingestion 2026-07-30 13:06:25 +05:30
cache-refresh-worker.ts fix(tui): clean cache locks on confirmed exit (#1165) 2026-08-28 15:06:07 -07:00
clock.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
ink-user-timing-probe.tsx fix(cli): default NODE_ENV to production so Ink's React build stops leaking user-timing entries. 2026-09-07 10:27:46 -03:00
menubar-legacy-required-keys.json fix(menubar): older menubar apps load again, and in-app Update restarts the app (#1548) 2026-09-24 20:07:25 +02:00
mock-discovery-register.mjs fix(cli): surface mDNS scan errors, robust spend-flow rollup + date label, harden tests 2026-07-10 16:20:41 -07:00
mock-idp.ts fix(sync): address attribution review — cwd-fallback egress, Windows paths, PR-link validation 2026-08-02 12:29:18 +00:00
serve-wedged-request.ts fix: bound the serve drain, reap orphans on Windows, and de-flake the grace test 2026-08-22 10:36:58 -07:00
session-cache-io.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
status-snapshot-writer.ts fix: harden status snapshot invalidation and writes 2026-08-25 01:24:19 +03:00