Skip to content

LLM-25262 Account for cached input tokens separately - #75

Merged
dtim merged 1 commit into
mainfrom
dtim/LLM-23562-token-reporting
Mar 18, 2026
Merged

LLM-25262 Account for cached input tokens separately#75
dtim merged 1 commit into
mainfrom
dtim/LLM-23562-token-reporting

Conversation

@dtim

@dtim dtim commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

The number of input tokens reported by Codex includes the cached input tokens count. Codex CLI itself subtracts cached tokens count when reporting token usage (see protocol.rs: impl fmt::Display for FinalOutput. The ACP server does not do this.

Changes:

  • Cached input tokens are no more included in the input tokens.
  • Changed the token usage text in the /status command.
Screenshot 2026-03-18 at 11 30 32 Screenshot 2026-03-18 at 11 30 14

@dtim
dtim requested a review from slapoguzov March 18, 2026 10:43
@dtim
dtim merged commit 532e0db into main Mar 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants