Roo-Code/packages
Roo Code aff2ed2081 feat: add LLM response repair for malformed JSON tool calls
This PR adds an experimental feature to automatically repair malformed JSON
responses from LLMs that struggle with strict output formats.

Changes:
- Add llmResponseRepair experimental setting
- Create JSON repair utility (repair-json.ts) with support for:
  - Trailing commas
  - Single quotes to double quotes conversion
  - Unquoted keys
  - Missing closing brackets/braces
  - Prefixed text stripping
  - Markdown code block extraction
- Integrate repair into NativeToolCallParser as fallback when JSON.parse fails
- Add comprehensive test suite for the repair utility

Closes #10481
2026-01-06 13:32:57 +00:00
..
build Custom tool calling (#10083) 2025-12-21 12:43:06 -08:00
cloud ux: Provider-centric signup (#10306) 2025-12-23 14:59:29 -08:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
core Add support for npm packages and .env files to custom tools (#10336) 2025-12-26 09:43:35 -08:00
evals Add an option to use our cli for evals (#10456) 2026-01-05 11:33:19 -08:00
ipc Better IPC error logging (#9727) 2025-12-01 15:02:34 -08:00
telemetry feat(telemetry): add PostHog exception tracking for consecutive mistake errors (#10193) 2025-12-18 12:59:37 -08:00
types feat: add LLM response repair for malformed JSON tool calls 2026-01-06 13:32:57 +00:00
vscode-shim VSCode shim + basic cli (#10452) 2026-01-05 10:24:05 -08:00