Skip to content

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

Open
atmikshetty wants to merge 6 commits intoanomalyco:devfrom
atmikshetty:feature/tps-display-footer-sidebar
Open

feat(tui): show tokens per second in the footer and sidebar #21133
atmikshetty wants to merge 6 commits intoanomalyco: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. 👍

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.

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

1 participant