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 }}
Repository navigation
Disable BlockAnchorReplacer for better edit tool #2433
opencode often does a string replacement and it inserts double ending branches, causing syntax errors, it then tries to do another search and replace to fix it and it gets an error "search and replament cannot be the same"
Often Claude will try to make a string replacement with an incorrect search string and opencode will accept the search string anyway and cause a syntax error, usually because of double ending brackets. I think this is caused by the BlockAnchorReplacer tool.
Activity
[-]Disable `BlockAnchorReplacer` for better editor tool[/-][+]Disable `BlockAnchorReplacer` for better edit tool[/+]github-actions commentedon Sep 5, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Sep 11, 2025
fixed by: 4ccf683
remorses commentedon Sep 12, 2025
opencode is as good as Claude Code finally, I also had to disable all formatters and LSP