Roo-Code/src/utils
Daniel 3400499917
fix: sanitize tool_use_id in tool_result blocks to match API history (#11131)
Tool IDs from providers like Gemini/OpenRouter contain special characters
(e.g., 'functions.read_file:0') that are sanitized when saving tool_use
blocks to API history. However, tool_result blocks were using the original
unsanitized IDs, causing ToolResultIdMismatchError.

This fix ensures tool_result blocks use sanitizeToolUseId() to match the
sanitized tool_use IDs in conversation history.

Fixes EXT-711
2026-01-30 23:15:25 -05:00
..
__tests__ fix: sanitize tool_use_id in tool_result blocks to match API history (#11131) 2026-01-30 23:15:25 -05:00
logging Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
autoImportSettings.ts feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
commands.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
config.ts fix: normalize Windows paths in MCP variable injection (#4739) (#4741) 2025-06-17 14:13:55 -04:00
countTokens.ts Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
errors.ts Mode and provider profile selector (#7545) 2025-08-29 16:48:06 -07:00
export.ts refactor: unify export path logic and default to Downloads (#10882) 2026-01-21 21:34:48 -05:00
focusPanel.ts Reapply "Always focus the panel when clicked to ensure menu buttons are visible" (#4598) 2025-06-17 16:51:56 -04:00
fs.ts Refactor out file helpers into fs.ts 2024-10-09 01:49:55 -04:00
git.ts Move more types to @roo-code/types (for the cli) (#10583) 2026-01-09 11:59:06 -08:00
globalContext.ts fix(modes): custom modes under custom path not showing (#8499) 2025-10-28 19:36:56 -04:00
json-schema.ts fix: flatten top-level anyOf/oneOf/allOf in MCP tool schemas (#10726) 2026-01-15 23:05:00 -05:00
mcp-name.ts Replace hyphen encoding with fuzzy matching for MCP tool names (#10775) 2026-01-24 00:49:13 -05:00
migrateSettings.ts fix(modes): custom modes under custom path not showing (#8499) 2025-10-28 19:36:56 -04:00
networkProxy.ts feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
object.ts Make the default architect prompt create a todo list (#5472) 2025-07-08 13:59:48 -04:00
outputChannelLogger.ts Cloud: add auth logs to the output channel (#4270) 2025-06-02 16:56:27 -07:00
path.ts fix(path): return empty string from getReadablePath when path is empty - ROO-437 (#10638) 2026-01-12 18:49:37 -05:00
pathUtils.ts Additional checkbox for auto-approving reads and writes outside of the workspace (#1965) 2025-03-25 01:35:33 -04:00
safeWriteJson.ts fix: use json-stream-stringify for pretty-printing MCP config files (#9864) 2026-01-23 19:19:35 -08:00
shell.ts fix: handle array paths from VSCode terminal profiles (#7697) 2025-09-05 11:41:00 -07:00
single-completion-handler.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
storage.ts refactor(storage): better fs check (#7164) 2025-08-21 02:15:52 -07:00
tag-matcher.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
text-normalization.ts fix: handle square bracket HTML entities in Gemini responses (#7577) 2025-09-16 11:53:52 -04:00
tiktoken.ts fix: correct token counting for context truncation display (#9961) 2025-12-16 16:12:02 -07:00
tool-id.ts fix: truncate call_id to 64 chars for OpenAI Responses API (#10763) 2026-01-15 23:09:54 -05:00
tts.ts Add a way to stop TTS (#1787) 2025-03-18 17:05:05 -07:00
vitest-verbosity.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00