Roo-Code/src
MFPires 97fe13dcb1 fix: Prevent context token counter from resetting on failed API calls
- 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.
2025-01-27 23:12:01 -03:00
..
__mocks__ Custom modes 2025-01-21 09:39:54 -05:00
api Merge pull request #555 from dairui1/feat/openrouter_base_url 2025-01-26 00:35:11 -05:00
core Merge pull request #594 from samhvw8/feat/code-action-with-current-task 2025-01-27 09:43:46 -05:00
exports fix: correct VSCode URI 2025-01-15 08:24:21 +11:00
integrations Speed up diff edits 2025-01-27 02:52:05 -05:00
services Add per-server MCP network timeout configuration 2025-01-26 22:49:21 -05:00
shared fix: Prevent context token counter from resetting on failed API calls 2025-01-27 23:12:01 -03:00
test fix comment on pr 2025-01-24 00:51:35 +07:00
utils refactor: generalize prompt enhancement into single completion handler 2025-01-24 01:14:48 +07:00
extension.ts Add new/existing task for all three actions 2025-01-27 09:40:04 -05:00