You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 15, 2026. It is now read-only.
[BUG] Separator after :start_line: in apply_diff is not validated #12210
The LLM sometimes messes up the separator and writes the text to search without newline. Roo doesn't detect that and doesn't provide a meaningful error message so the model starts looping.
Context (who is affected and when)
Happens randomly with smaller consumer hardware friendly models such as Qwen 3.6
The problematic part is -------import { useTranslate } (missing \n after -------).
Roo responds with:
{
"type": "tool_result",
"tool_use_id": "YwRzYCZxTOl9OZZLfMngeKXWTpbPZwVb",
"content": "<error_details>\nNo sufficiently similar match found at line: 7 (63% similar, needs 100%)\n\nDebug Info:\n- Similarity Score: 63%\n- Required Threshold: 100%\n- Search Range: starting at line 7\n- Tried both standard and aggressive line number stripping\n- Tip: Use the read_file tool to get the latest content of the file before attempting to use the apply_diff tool again, as the file content may have changed\n\nSearch Content:\n-------import { useTranslate } from '../../i18n/I18nContext';\n\ntype MouseMode\n\nBest Match Found:\n7 | import { useTranslate } from '../../i18n/I18nContext';\n...
Expected result
A clear error about separator missing new line should be provided in the message so the model can recover
Actual result
The model thinks the tool is broken or that file has invalid indentation etc. and keeps making the same mistake
Variations tried (optional)
After explicitly telling the model about the separator issue and providing an example of correct call it was able to make further calls correctly.
App Version
Version: 3.53.0 (ad25634) (with #12200 applied because it really helps)
Activity
rkfg commentedon Apr 28, 2026
@roomote approved, do it
chore: add changeset for RooCodeInc#12210 fix