Skip to content

feat(app): show tokens per second in assistant footer - #53085

Closed
EmmanuelMr18 wants to merge 1 commit into
anomalyco:v2from
EmmanuelMr18:tokens-per-second
Closed

EmmanuelMr18 wants to merge 1 commit into
anomalyco:v2from
EmmanuelMr18:tokens-per-second

Conversation

@EmmanuelMr18

Copy link
Copy Markdown

Why

The TUI shows tokens per second in the assistant footer (behind session.tps, default on). The app's assistant footer only showed agent · model · duration.

What Changes

  • The timeline row renderer computes the turn rate (ported from the TUI's turnTokensPerSecond): sums tokens.output + tokens.reasoning across the turn's assistant steps and divides by their total streamed time. The rate is hidden when any step lacks time.streamed, or when tokens or streamed time are zero
  • The assistant footer renders it after the duration using the new ui.message.tokensPerSecond i18n key ("{{count}} tok/s"), added to all 63 ui locale files

Verified live in the app against a v2 dev server: the footer reads "Build · Qwen3.8-27B · 10s · 43.4 tok/s", matching the message data — (11 output + 395 reasoning) tokens / 9.355s streamed.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 72 hours, or it will be automatically closed.

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

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

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

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

Labels

needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant