mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-09-14 19:59:52 +08:00
0d530f3b73
The session page was showing significantly lower token counts than the console summary because it used local tiktoken estimation while the console used actual API-reported usage data. Now SetResponse prefers resp.Usage when available (falling back to tiktoken), persists cache token fields to JSONL, and the viewer displays cache read/write stats alongside prompt/completion totals.