mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| api.ts | ||
| array.ts | ||
| checkExistApiConfig.ts | ||
| combineApiRequests.ts | ||
| combineCommandSequences.ts | ||
| context-mentions.ts | ||
| experiments.ts | ||
| ExtensionMessage.ts | ||
| getApiMetrics.ts | ||
| HistoryItem.ts | ||
| mcp.ts | ||
| modes.ts | ||
| support-prompt.ts | ||
| tool-groups.ts | ||
| vsCodeSelectorUtils.ts | ||
| WebviewMessage.ts | ||