Roo-Code/src
Roo Code 6722ae2c36 fix: add tiktoken fallback for VSCode LM API token counting
- Add tiktoken fallback when VSCode API returns 0, negative, or invalid values
- Add tiktoken fallback when VSCode API is unavailable or throws errors
- Update token counting to provide more frequent updates during streaming (every 100 chars)
- Add comprehensive tests for fallback behavior

Fixes #6112
2025-07-28 16:39:22 +00:00
..
__mocks__ feature: add toggle for disable mcp server tool from prompt (#3551) 2025-06-20 19:14:59 -04:00
__tests__ Support for custom slash commands (#6263) 2025-07-26 23:16:46 -04:00
activate fix (#5540) 2025-07-09 20:57:10 -04:00
api fix: add tiktoken fallback for VSCode LM API token counting 2025-07-28 16:39:22 +00:00
assets PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
core Feat: Adding Gemini tools - URL Context and Grounding with Google Search (#5959) 2025-07-27 14:34:55 -04:00
extension Log API-initiated tasks to a tmp directory (#5833) 2025-07-17 11:47:21 -07:00
i18n Feat: Adding Gemini tools - URL Context and Grounding with Google Search (#5959) 2025-07-27 14:34:55 -04:00
integrations fix: respect maxReadFileLine setting for file mentions to prevent context exhaustion (#6073) 2025-07-25 16:45:45 -04:00
services Support for custom slash commands (#6263) 2025-07-26 23:16:46 -04:00
shared Support for custom slash commands (#6263) 2025-07-26 23:16:46 -04:00
utils fix: add Git installation check for checkpoints feature (#3109) (#5920) 2025-07-22 21:31:20 -04:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
esbuild.mjs debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.json Changeset version bump (#6239) 2025-07-26 00:41:54 -04:00
package.nls.ca.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.de.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.es.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.fr.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.hi.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.id.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.it.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.ja.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.ko.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.nl.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.pl.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.pt-BR.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.ru.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.tr.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.vi.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.zh-CN.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.zh-TW.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
tsconfig.json fix typescript compiler watch path inconsistency (#5155) 2025-07-08 10:40:01 -04:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Fix #4958: Increase vitest timeout for Windows CI (#4959) 2025-06-20 17:14:42 -07:00
vitest.setup.ts Farewell jest (#4607) 2025-06-16 21:39:45 -07:00