Problem Description
There is an inconsistency/bug in how tokens are displayed in the UI when a task involves multiple API calls (e.g., using tools like read_file).
- Input tokens (
↑): Displays the cumulative sum of all API calls within the task (Correct).
- Output tokens (
↓): Overwrites the value and displays ONLY the output tokens from the last API response, instead of the cumulative total.
Steps to Reproduce
- Run a task in Architect or Code mode that requires a tool execution (e.g., asking to read a file).
- Observe the first API call (e.g., tool call generated ~270 output tokens).
- Approve the tool call and wait for the second API call (e.g., summary response ~270 output tokens).
- Check the UI status bar vs. Google Gemini Dashboard / Provider logs.
Expected Behavior
Output tokens should show the cumulative total of generated tokens for the entire task (e.g., ~540 tokens), matching the provider's billing metrics, just like Input tokens does.
Actual Behavior
The UI displays only the last call's output tokens (e.g., 270), misleading the user about the actual total output token count used during the session.
Problem Description
There is an inconsistency/bug in how tokens are displayed in the UI when a task involves multiple API calls (e.g., using tools like
read_file).↑): Displays the cumulative sum of all API calls within the task (Correct).↓): Overwrites the value and displays ONLY the output tokens from the last API response, instead of the cumulative total.Steps to Reproduce
Expected Behavior
Output tokensshould show the cumulative total of generated tokens for the entire task (e.g., ~540 tokens), matching the provider's billing metrics, just likeInput tokensdoes.Actual Behavior
The UI displays only the last call's output tokens (e.g., 270), misleading the user about the actual total output token count used during the session.