mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
This adds support for repairing malformed JSON in LLM tool call responses, particularly useful for models like Grok that struggle with strict JSON formatting. Changes: - Add jsonrepair dependency for JSON repair functionality - Create json-repair utility module with tryRepairJson, repairJson, parseWithRepair, isValidJson - Integrate repair logic into NativeToolCallParser.parseToolCall() - Add malformedJsonRepair experimental setting (disabled by default) - Wire up experiment toggle in Task.ts The feature is gated behind an experimental flag and only activates when: 1. The experiment is enabled in settings 2. Standard JSON.parse() fails on tool call arguments This addresses issue #10481 regarding BAML for parsing LLM output, using a simpler jsonrepair approach as an initial solution. |
||
|---|---|---|
| .. | ||
| build | ||
| cloud | ||
| config-eslint | ||
| config-typescript | ||
| core | ||
| evals | ||
| ipc | ||
| telemetry | ||
| types | ||
| vscode-shim | ||