mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-30 11:52:04 +00:00
* fix: stop reporting cache-hit rate and cost across all UI surfaces Cost estimates and cache read/write token reporting are unreliable on providers that don't surface cached_tokens (e.g. ollama-cloud, which doesn't implement prompt_tokens_details.cached_tokens), producing misleading near-zero 'cache hit' readouts and cost figures. Remove cost + cache-hit reporting from every user-facing surface; keep input/output/total token counts (provider-agnostic and accurate) and the Nous account billing UI (real account money, separate from per-conversation estimates). Surfaces: - CLI /usage + model-info: drop cost lines + cache read/write token lines - Gateway /usage + /model: drop cost + cache lines - tui_gateway/server.py: stop emitting cost_usd / cache_read in usage and subagent.complete payloads - TUI (Ink): drop cost from status bar (+ showCost plumbing), /usage panel, thinking rollup, agents overlay (incl. compare view); keep token counts - Desktop Command Center: drop cost stat, per-model cost, actual-cost hint Underlying estimate_usage_cost / format_cost / insights cost columns are left intact but no longer surfaced (display-only change, reversible). * test: update TUI + gateway + CLI tests for removed cost/cache-hit reporting - CLI /usage test asserts cost/cache lines are absent, tokens present - gateway /usage test drops cost + cache asserts; removes cost-included test - TUI subagentTree summary expectation drops the cost segment - useConfigSync + appChrome status-rule tests drop showCost prop/state |
||
|---|---|---|
| .. | ||
| circularBuffer.ts | ||
| clipboard.ts | ||
| editor.test.ts | ||
| editor.ts | ||
| emoji.ts | ||
| externalCli.ts | ||
| externalLink.ts | ||
| forceTruecolor.ts | ||
| fpsStore.ts | ||
| fuzzy.test.ts | ||
| fuzzy.ts | ||
| gracefulExit.ts | ||
| history.ts | ||
| inputMetrics.ts | ||
| liveProgress.test.ts | ||
| liveProgress.ts | ||
| mathUnicode.ts | ||
| memory.test.ts | ||
| memory.ts | ||
| memoryMonitor.ts | ||
| messages.test.ts | ||
| messages.ts | ||
| openExternalUrl.test.ts | ||
| openExternalUrl.ts | ||
| osc52.ts | ||
| parentLog.ts | ||
| perfPane.tsx | ||
| platform.ts | ||
| precisionWheel.ts | ||
| prompt.ts | ||
| reasoning.ts | ||
| rpc.ts | ||
| subagentTree.ts | ||
| syntax.ts | ||
| terminalModes.ts | ||
| terminalParity.ts | ||
| terminalSetup.ts | ||
| termux.ts | ||
| text.test.ts | ||
| text.ts | ||
| todo.test.ts | ||
| todo.ts | ||
| viewportStore.ts | ||
| virtualHeights.ts | ||
| wheelAccel.ts | ||