Skip to content

Disable BlockAnchorReplacer edit replacer#2534

Closed
remorses wants to merge 1 commit into
anomalyco:devfrom
remorses:fix-edit-replacer
Closed

Disable BlockAnchorReplacer edit replacer#2534
remorses wants to merge 1 commit into
anomalyco:devfrom
remorses:fix-edit-replacer

Conversation

@remorses

Copy link
Copy Markdown
Contributor

Fix #2433

Let's try disabling this tool, Claude Code currently does a super simple search replace. Adding more heuristics only confuses the model. Better have the edit fail than create invalid code that model is not aware of

Copilot AI review requested due to automatic review settings September 10, 2025 18:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR disables the BlockAnchorReplacer edit replacer to address issue #2433 by commenting it out from the list of replacers used in the edit tool.

  • Removes BlockAnchorReplacer from the active replacers list to prevent invalid code generation
  • Maintains the simple search-replace approach for Claude Code to avoid model confusion

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@rekram1-node

Copy link
Copy Markdown
Collaborator

looks like dax just did this: 4ccf683

closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable BlockAnchorReplacer for better edit tool

3 participants