hermes - 💡(How to fix) Fix [Feature]: Add tps (tokens per second) field to runtime_footer [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

Code Example

The calling site in gateway/run.py already tracks response tokens and timing — just needs to pass them through to build_footer_line().

### Alternatives Considered

_No response_

### Feature Type

CLI improvement

### Scope

None

### Contribution

- [ ] I'd like to implement this myself and submit a PR

### Debug Report (optional)
RAW_BUFFERClick to expand / collapse

Problem or Use Case

What: Add a tps (tokens per second) field to the runtime_footer so users can see real-time generation speed in the status bar.

Why: The runtime footer currently supports only model, context_pct, and cwd. For power users running large models or monitoring API performance, tokens-per-second is one of the most useful real-time metrics — it tells you instantly if the model/provider is running fast or throttled.

Proposed Solution

Where: gateway/runtime_footer.py — the format_runtime_footer() function only needs a new elif field == "tps" branch (line ~115).


    In format_runtime_footer() signature, add:
    response_tokens: Optional[int] = None,
    elapsed_ms: Optional[float] = None,

    elif field == "tps":
        if response_tokens and elapsed_ms and elapsed_ms > 0:
            tps = round(response_tokens / (elapsed_ms / 1000), 1)
            parts.append(f"{tps}t/s")

The calling site in gateway/run.py already tracks response tokens and timing — just needs to pass them through to build_footer_line().

Alternatives Considered

No response

Feature Type

CLI improvement

Scope

None

Contribution

  • I'd like to implement this myself and submit a PR

Debug Report (optional)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Feature]: Add tps (tokens per second) field to runtime_footer [1 pull requests]