Skip to content

Show cached vs fresh token breakdown in context meter #34296

Closed as not planned
Closed as not planned

Description

@cul-de-trans

Feature Request

Problem

The context meter in the TUI currently shows only the total token count, but doesn't distinguish between:

  • Fresh input tokens (standard pricing)
  • Cached input tokens (approximately 90% discount)

This makes it difficult to track actual API costs, since cached tokens are significantly cheaper.

Solution

Display cached vs fresh token breakdown directly on the context meter in the TUI.

Example: Instead of showing just "7.5K tokens", show something like:

  • "2.5K fresh / 5K cached"
  • Or with cost indicators if possible

Additional Context

  • Different token types have different pricing
  • Users need visibility into cost breakdown to optimize API usage
  • Claude API already provides this information in usage data
  • Other tools/dashboards typically show this distinction

User Environment

  • OS: macOS
  • Shell: zsh
  • Date: June 28, 2026

Activity

  1. github-actions commented on Jun 28, 2026

    @github-actions
    Contributor

    This issue does not fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: (e.g., [FEATURE]: Show cached vs fresh token breakdown in context meter)
    • The feature request template requires a verification checkbox confirming you searched existing issues before submitting

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of an existing issue. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Jun 28, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions