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]: Real-time token display in TUI footer/header · Issue #17449 · anomalyco/opencode

[FEATURE]: Real-time token display in TUI footer/header #17449

New issue
Copy link
New issue
Copy link
Closed
Closed
[FEATURE]: Real-time token display in TUI footer/header#17449
Copy link
Assignees
kitlangton

Description

@FurryWolfX
FurryWolfX
opened on Mar 14, 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

Problem

Currently, OpenCode only displays token statistics after a request completes (in the header's ContextInfo component). During streaming:

  1. No real-time token count is shown
  2. No progress indicator is displayed
  3. Users have no way to know if the system is processing or stuck

This is particularly problematic for:

  • Long reasoning tasks (especially with thinking models)
  • Large context windows
  • Slow network connections

Request

Add real-time token display in the TUI footer or header that updates during streaming, similar to Claude Code's behavior. This would show:

  1. Estimated token count - Based on character count during streaming
  2. Visual activity indicator - Show that the system is actively processing
  3. Output rate - Tokens per second (optional, but helpful)

Activity

  1. FurryWolfX
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 14, 2026
  2. github-actions
    assigned
    thdxr
    on Mar 14, 2026
  3. github-actions commented on Mar 14, 2026

    @github-actions
    github-actionsBot
    on Mar 14, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [FEATURE]: Near-Real-Time Token and Cost Visibility #10354: Near-Real-Time Token and Cost Visibility — very similar request for live token usage display during streaming with status bar updates
    • [FEATURE]: Display token usage information in the TUI #13003: Display token usage information in the TUI — covers real-time token display in the TUI interface
    • [FEATURE]: Adding Experimental Calculation and Display of Tokens per second #6096: Adding Experimental Calculation and Display of Tokens per second — covers the tokens/s metric specifically requested here
    • [FEATURE]: show tokens / second #5374: show tokens / second — another request for tokens per second display

    Please review these issues and consider adding a comment or reaction there instead of opening a new one.

  4. andrewdunndev commented on Mar 24, 2026

    @andrewdunndev
    andrewdunndev
    on Mar 24, 2026
    More actions

    I'd like to take this on if there's interest. I filed #18968 (now closed as duplicate) with a concrete approach:

    Add token stats to the existing footer component in packages/opencode/src/cli/cmd/tui/routes/session/footer.tsx. Three data points:

    • tok/s -- live output tokens-per-second during streaming, final rate shown briefly after completion
    • in -- cumulative input tokens for the session (compact K/M suffix)
    • out -- cumulative output tokens for the session

    The data is already in the message store (message.data.tokens has input/output/reasoning/cache breakdowns). The footer subscribes to message events and accumulates totals.

    I also filed #18969 proposing a tui.footer.items plugin hook so token-tracker plugins could use the footer instead of toasts. That one got the core label so it may be worth considering as the extensible approach.

    Happy to submit a PR for either the built-in footer display or the plugin hook, whichever the team prefers.

    Reacted by Ivan Krapivtsev and aryoda
  5. andrewdunndev
    added a commit that references this issue on Mar 25, 2026

    feat(tui): add persistent token usage display in session footer

    This issue will close once commit 7cb34ff is merged into the 'dev' branch.
    7cb34ff
  6. Tarquinen commented on Apr 4, 2026

    @Tarquinen
    Tarquinen
    on Apr 4, 2026
    Member
    More actions

    This can be done via plugin now, for example:

    https://github.com/Tarquinen/oc-tps

    Reacted by wolfx
  7. thdxr
    assigned
    kitlangton
    and unassigned
    thdxr
    on Apr 26, 2026
  8. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  9. FurryWolfX commented on May 22, 2026

    @FurryWolfX
    FurryWolfX
    on May 22, 2026
    Author
    More actions

    This can be done via plugin

  10. FurryWolfX
    closed this as completedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

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.