Add per-message cost tracking by capturing usage data from LLM API responses and attaching it to assistant messages when saved to session. - Update addAssistantMessage to accept usage parameter - Modify handleToolCalls to pass usage to message creation - Enhance processStreamingResponse to return usage with model and cost - Calculate cost in cents and include model name in usage metadata This enables the control plane cost analysis page to display accurate per-message costs without client-side token estimation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| intellij | ||
| vscode | ||