feat(desktop): per-message usage stats UI (tokens, cost, TTFT, tok/s) (#10210)

Co-authored-by: Douwe M Osinga <douwe@sidewalklabs.com>
This commit is contained in:
filip
2026-07-06 13:51:06 -07:00
committed by GitHub
parent 8694a8d104
commit af2c765c82
40 changed files with 2093 additions and 22 deletions
+23
View File
@@ -4979,6 +4979,29 @@
}
}
},
{
"type": "object",
"description": "Per-message token usage/cost, sent after the corresponding `Message`\nevent once the provider call's usage is known.",
"required": [
"usage",
"type"
],
"properties": {
"message_id": {
"type": "string",
"nullable": true
},
"type": {
"type": "string",
"enum": [
"MessageUsage"
]
},
"usage": {
"$ref": "#/components/schemas/MessageUsage"
}
}
},
{
"type": "object",
"required": [