GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: v2: show per-step and per-turn cost in the token usage view · Issue #53121 · anomalyco/opencode

[FEATURE]: v2: show per-step and per-turn cost in the token usage view #53121

New issue
Copy link
New issue
Copy link
Open
Open
[FEATURE]: v2: show per-step and per-turn cost in the token usage view#53121
Copy link
Assignees
simonklee

Description

@bew
bew
opened on Oct 4, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Hello!

When I open the debug.turn_tokens usage view I can see how a turn splits into steps by token counts (New / Cached / Total), but there's no cost dimension, so I can't tell which step actually cost the most.

Image

It would help to see the spend next to the tokens:

  • A Cost column in the expanded per-step table, each row showing its incremental spend (e.g. +$0.0004).
  • A turn total on the collapsed summary line (e.g. · $0.0012 cost).

Related, but different scope: #46636 reports a units bug on this same summary line, and #41915 / #39740 ask for cost elsewhere (a /usage report and the session footer).

👉 I'm about to open a PR for this 😉
EDIT: Opened #53156 !

Activity

  1. github-actions
    assigned
    simonklee
    on Oct 4, 2026
  2. github-actions commented on Oct 4, 2026

    @github-actions
    github-actionsBot
    on Oct 4, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • TUI turn token summary mixes turn sums and last-step values on one line #46636: Also concerns the collapsed debug.turn_tokens turn summary line, though it focuses on token aggregation semantics rather than displaying cost.
  3. bew
    changed the title [-][FEATURE]: show per-step and per-turn cost in the token usage view[/-] [+][FEATURE]: v2: show per-step and per-turn cost in the token usage view[/+] on Oct 4, 2026
  4. opencodejr commented on Oct 27, 2026

    @opencodejr
    opencodejrBot
    on Oct 27, 2026
    Contributor
    More actions

    Thanks for the request, @bew! To restate it: you'd like the debug.turn_tokens usage view to show cost as well as tokens. That means a Cost column with each step's incremental spend in the expanded table, plus a turn total on the collapsed summary line. Right now the view only shows New / Cached / Total token counts, so it's hard to tell which step cost the most.

    Maintainers will consider it, and thanks for opening #53156 alongside it.

    Related issues:

    • TUI turn token summary mixes turn sums and last-step values on one line #46636: a units bug on this same summary line
    • [FEATURE]: /usage — dedicated session token & cost report (alias /cost) #41915: asks for cost in a /usage report
    • [FEATURE]: Show total cost including subagents in the session footer #39740: asks for cost in the session footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @simonklee
    simonklee

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.