Skip to content

Fix usage model token breakdown - #96

Merged
AarushiShah-db merged 3 commits into
mainfrom
fix-usage-model-token-breakdown
May 27, 2026
Merged

Fix usage model token breakdown#96
AarushiShah-db merged 3 commits into
mainfrom
fix-usage-model-token-breakdown

Conversation

@AarushiShah-db

@AarushiShah-db AarushiShah-db commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds per-model token aggregation to the ucode usage SQL query via a model_tokens rollup.
  • Updates Top models this week to use actual per-model token totals instead of applying agent/day totals to every model.
  • Shows per-model token counts in the daily agent usage table.
  • Filters ucode usage output to agents configured by ucode.
  • Shows a compact “No usage for in the last 7 days.” message instead of an empty table for configured agents with no recent usage.

Tests

  • uv run ruff check .
  • uv run ty check src/
  • uv run pytest tests/test_lint.py tests/test_usage.py -q
  • uv run pytest

Local Test

Screenshot 2026-05-26 at 6 11 38 PM

@AarushiShah-db
AarushiShah-db force-pushed the fix-usage-model-token-breakdown branch from 5735282 to 178dd6c Compare May 27, 2026 18:26
@AarushiShah-db

Copy link
Copy Markdown
Collaborator Author

/merge

@AarushiShah-db
AarushiShah-db merged commit 62c5285 into main May 27, 2026
2 checks passed
@AarushiShah-db
AarushiShah-db deleted the fix-usage-model-token-breakdown branch May 27, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants