mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-23 07:25:16 +00:00
Models missing from the pricing tables silently contributed $0 to every total with no indication anywhere (the warning was gated behind CODEBURN_VERBOSE). Add render-time detection that flags aggregated model rows with usage but $0 cost whose pricing lookup fails right now, and surface it in overview, report/today/month JSON (unpricedModels), the TUI By Model panel, and the MCP get_usage summary. Render-time detection covers cached sessions (cost is computed at parse time) and heals as soon as pricing data, an alias, or a price override arrives. Rows with real cost are never flagged: aggregation keys rows by display name, which the pricing lookup misses; $0 display-name rows are reverse-resolved to their raw id before flagging so sessions cached before their model's pricing landed don't get a misleading alias hint. Local models and model-savings mappings stay excluded: $0 is correct for them. Fixes #638 |
||
|---|---|---|
| .. | ||
| redact.ts | ||
| server.ts | ||
| tables.ts | ||