Error with "search and replace" tool
GPT-OSS-20B always uses the wrong regular expression.
Errors:
Error search and replace:
Invalid regular expression: /(?s)<div class="additional-filter-section"[^>]*>.*?</div>/g: Invalid group
Error search and replace:
Invalid regular expression: /(?s)<div class="additional-filter-section"[^>]*>.*?</div>/g: Invalid group
Currently, this tool returns complete XML to Roo-Code, but Roo-Code's processing appears incomplete and unescaped, seemingly implemented assuming potentially dangerous XML. If the XML contains characters requiring escaping, the correctly processed XML appears to become unmanageable in Roo-Code. I will fix this later.
Currently, this tool returns complete XML to Roo-Code, but Roo-Code's processing appears incomplete and unescaped, seemingly implemented assuming potentially dangerous XML. If the XML contains characters requiring escaping, the correctly processed XML appears to become unmanageable in Roo-Code. I will fix this later.
The apply_diff tool doesn't work well either.
I would appreciate it if you could check whether it has been improved.
I fixed the escape, but the regular expression error might be due to using the environment-dependent (?s). In that case, you need to instruct the LLM not to use it.
Yes, the search‑and‑replace tool has been improved, but apply_diff still keeps failing.