Roo-Code/src/shared
MFPires 70af1d2cb3 fix: update context token calculation to match upstream
The context token calculation has been updated to:
- Include cache tokens (cacheWrites + cacheReads) in the total context size
- Use a cleaner approach to find the last valid API request
- Fix issue where placeholder messages without token info were being counted
- Match upstream's implementation of getTotalTokensFromMessage

This fixes the issue where context size was incorrectly showing as 139 tokens
without any API requests being made.
2025-02-01 17:38:52 -03:00
..
__tests__ insert_code_block -> insert_content 2025-01-28 14:36:12 -05:00
api.ts Adds provider names to dropdown 2025-01-27 19:48:43 +05:30
array.ts Initial streaming refactor 2024-10-09 01:49:54 -04:00
checkExistApiConfig.ts Prettier backfill 2025-01-17 14:11:28 -05:00
combineApiRequests.ts Refactor claudeMessages 2024-10-09 01:49:59 -04:00
combineCommandSequences.ts Refactor claudeMessages 2024-10-09 01:49:59 -04:00
context-mentions.ts Prettier backfill 2025-01-17 14:11:28 -05:00
experiments.ts insert_code_block -> insert_content 2025-01-28 14:36:12 -05:00
ExtensionMessage.ts Add a new_task tool 2025-01-29 10:56:44 -05:00
getApiMetrics.ts fix: update context token calculation to match upstream 2025-02-01 17:38:52 -03:00
HistoryItem.ts refactor: remove experimental diff from history since we are using the state 2025-01-16 23:49:11 -05:00
mcp.ts Add per-server MCP network timeout configuration 2025-01-26 22:49:21 -05:00
modes.ts update with comment in pr 2025-01-28 21:06:37 +07:00
support-prompt.ts Review feedback 2025-01-23 15:56:24 -08:00
tool-groups.ts Add a new_task tool 2025-01-29 10:56:44 -05:00
vsCodeSelectorUtils.ts Prettier backfill 2025-01-17 14:11:28 -05:00
WebviewMessage.ts feat: implement experimental features system 2025-01-28 21:06:33 +07:00