Skip to content

feat(tui): show tokens per second in the footer and sidebar #21133

Closed
atmikshetty wants to merge 6 commits into
anomalyco:devfrom
atmikshetty:feature/tps-display-footer-sidebar
Closed

feat(tui): show tokens per second in the footer and sidebar #21133
atmikshetty wants to merge 6 commits into
anomalyco:devfrom
atmikshetty:feature/tps-display-footer-sidebar

Conversation

@atmikshetty
Copy link
Copy Markdown

@atmikshetty atmikshetty commented Apr 5, 2026

Issue for this PR

Closes #21132

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

  • This PR adds a functionality that allows users to see the tokens per second(TPS) of the current model they are using in the sidebar and the message footer.
  • Streams the token when the responses are being generated.

How did you verify your code works?

  • Tested it across multiple providers.
  • Verified if the TPS is correct by checking the model cards on OpenRouter.

Screenshots / recordings

Recording of the few models I tried:

Screen.Recording.2026-04-06.at.3.48.33.AM.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 5, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found potentially related PRs that address similar functionality:

Related PRs:

  1. PR feat(tui): add tokens per second to response footer #12721 - "feat(tui): add tokens per second to response footer"

  2. PR feat(tui): show tokens per second in assistant message footer #14493 - "feat(tui): show tokens per second in assistant message footer"

  3. PR feat(tui): add native status line template system #13885 - "feat(tui): add native status line template system"

Recommendation: Check the status of PRs #12721 and #14493 to understand if they were merged, closed, or abandoned. The current PR (21133) may be building on, replacing, or fixing those previous attempts. Since the current PR closes issue #21132, verify that issue to understand the context.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 5, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rekram1-node
Copy link
Copy Markdown
Collaborator

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Token Per Second(TPS) being displayed in the assistant footer and sidebar

2 participants