mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-10 13:31:38 +00:00
The OpenTUI /usage went through the slash-worker subprocess, which resumes the session WITHOUT a live agent — so it could never show current-session tokens or costs, and what it did show landed as a full-screen page. - slash.exec now answers /usage in-process from the live agent: per-model rows (requests, tokens in/out, cache, provider-reported cost when present), session totals/context, a one-line 30-day summary (SessionDB.usage_totals, real costs only) and a one-line Nous credits gauge (nous_credits_compact_line, refactored out of nous_credits_lines). ~8 lines instead of a page. - Unreported costs render as 'not reported by provider' — never $0.00 — and the 30d summary omits cost when no session in the window has a provider-reported figure. - /usage full keeps the detailed legacy CLI page via the worker. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| entry.py | ||
| event_publisher.py | ||
| render.py | ||
| server.py | ||
| slash_worker.py | ||
| transport.py | ||
| ws.py | ||