Antigravity and gemini-cli wrap their payload in { response: {...} }.
extractUsageFromResponse only tested top-level usageMetadata, so every
non-streaming antigravity request logged zero usage (IN 0 | OUT 0) and
zeroed rows in the usage dashboard. Read the envelope the same way
usageTracking.js and nonStreamingHandler.js already do; top-level
metadata keeps priority and the OpenAI/Claude branches are untouched.
Fixes #3260
|
||
|---|---|---|
| .. | ||
| nonStreamingHandler.js | ||
| requestDetail.js | ||
| sseToJsonHandler.js | ||
| streamingHandler.js | ||