mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
- Only update context tokens when both input and output tokens are non-zero - Keep previous context token count when API calls fail - Avoid resetting counter on partial or failed responses This makes the context token counter more resilient against edge cases and provides more accurate context size tracking during API failures. |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| api | ||
| core | ||
| exports | ||
| integrations | ||
| services | ||
| shared | ||
| test | ||
| utils | ||
| extension.ts | ||