{"repo":"NousResearch/hermes-agent","public_id":"71778","display_label":"Dashboard model analytics querying wrong data source","summary":"These items concern the dashboard's models analytics page incorrectly querying the stale sessions table rather than session_model_usage, causing inaccurate provider badges and token attribution when models are switched mid-session.","subsystem":"dashboard","counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":133991,"merged_at":"2026-10-06T17:23:15+00:00"},"resolution":{"state":"resolved","by":"pr-133991"},"freshness":{"state":"verified","last_verified_at":"2026-10-06T17:23:15+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":71778,"pr_number":133991,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-10-06T17:23:15+00:00"},{"issue_number":89631,"pr_number":133991,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-10-06T17:23:15+00:00"}],"members":[{"kind":"issue","number":71778,"title":"Dashboard Models page (`/api/analytics/models`) still queries stale `sessions` table instead of `session_model_usage` — provider badges and token attribution remain incorrect after mid-session `/model` switches","url":null,"state":"closed"},{"kind":"pr","number":71802,"title":"fix(dashboard): query session_model_usage for accurate model analytics (#71778)","url":null,"state":"closed","close_reason":{"category":"superseded_by_pr","implication":"superseded"},"merged":false},{"kind":"pr","number":133991,"title":"fix(dashboard): attribute models analytics per API call from session_model_usage","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["contributors/emails/[redacted:email]","contributors/emails/zaclanzon@users.noreply.github.com","hermes_cli/web_routers/analytics.py","tests/hermes_cli/test_models_analytics_attribution.py","tests/hermes_cli/test_models_analytics_dedup.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}