mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-17 14:42:06 +00:00
_get_usage substituted the cumulative lifetime session_total_tokens into the current-window context_used when an external context engine did not report last_prompt_tokens, producing impossible status-bar readings (e.g. 1.9m/120k clamped to 100%). Populate context_used/percent only from a real current occupancy; leave the gauge unset otherwise. The built-in compressor always reports last_prompt_tokens, so it's unaffected. Fixes #50421. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| entry.py | ||
| event_publisher.py | ||
| git_probe.py | ||
| loop_noise.py | ||
| project_tree.py | ||
| render.py | ||
| server.py | ||
| slash_worker.py | ||
| transport.py | ||
| ws.py | ||