Files
CLIProxyAPI/internal/runtime
Luis Pater ede07cafa6 fix(interactions): emit [DONE] sentinel after terminal usage frame in Antigravity and Gemini streams
- Cache the latest valid usage frame in both Interactions translators and emit interaction.completed with the done sentinel once usage at or after the finish frame arrives, keeping earlier cached usage only as the explicit-[DONE] fallback so split finish/usage frames keep the final token counts.
- Recognize a bare [DONE] payload in the Antigravity stream parser (previously misparsed as a JSON array) and restore filter-renamed cpaUsageMetadata in the Gemini translator so executor-filtered frames still complete the stream.
- Document that a clean Antigravity EOF terminates Interactions streams even without finishReason, matching real tool-call streams, while read errors still surface without a synthetic completion.

Closes: #7003
2026-10-26 18:40:53 +08:00
..