Commit 1459ddc
committed
fix: yield incremental token usage for Claude Code assistant messages
- Modified claude-code.ts to yield incremental token usage after each assistant message
- This ensures the UI receives real-time token updates during streaming
- Prevents accumulation issues in Task.ts which was causing incorrect totals
- Fixes #5600 where assistant messages showed incorrect low token counts1 parent 26cfd92 commit 1459ddc
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
111 | 121 | | |
112 | 122 | | |
113 | 123 | | |
| |||
0 commit comments