Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Sep 25, 2025

Intended to fix situations where Roo sometimes gives up trying to apply edits on a file after failures even though it has not tried to reread and verify the current condition of said file.

image

In this specific example Roo simply moved on after trying twice to make edits and failing but never reread the file to see if the edits were failing do to an incorrect understanding of the files current condition.

Important

Corrects tool use suggestion in multiApplyDiffTool.ts for clarity by replacing <read_file> with the read_file tool.

  • Behavior:
    • Corrects tool use suggestion in multiApplyDiffTool.ts to replace <read_file> with the read_file tool for clarity.
    • Changes occur in error message suggestions at lines 463 and 476.

This description was created by Ellipsis for 7b5fbbd. You can customize this summary. It will automatically update as commits are pushed.

Copilot AI review requested due to automatic review settings September 25, 2025 17:39
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 25, 2025
Copy link
Contributor

Copilot AI left a comment

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 improves the clarity of error messages in the multiApplyDiffTool by updating tool usage suggestions to use more consistent and explicit language.

  • Updated error message suggestions to use consistent language when referring to the read_file tool
  • Changed references from <read_file> to "the read_file tool" for better clarity

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

@hannesrudolph hannesrudolph moved this from Triage to PR [Needs Review] in Roo Code Roadmap Sep 25, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 25, 2025
Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

I found some issues that need attention: P2 consistency suggestion for legacy applyDiffTool messaging; P3 microcopy suggestion to format the tool name with backticks on the updated lines. Inline comments included.

1. Verify the search content exactly matches the file content (including whitespace and case)
2. Check for correct indentation and line endings
3. Use <read_file> to see the current file content
3. Use the read_file tool to verify the current file content
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: Microcopy — consider formatting the tool name with backticks for readability and consistency (e.g., "the read_file tool").

Recovery suggestions:
1. Use <read_file> to examine the current file content
1. Use the read_file tool to verify the current file content
Copy link
Contributor

Choose a reason for hiding this comment

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

P3: Same note — consider "the read_file tool" for consistent formatting and readability.

@hannesrudolph hannesrudolph merged commit ab0644d into main Sep 25, 2025
15 checks passed
@hannesrudolph hannesrudolph deleted the fix/tool-suggestion branch September 25, 2025 17:53
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Sep 25, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Sep 25, 2025
mini2s added a commit to zgsm-ai/costrict that referenced this pull request Sep 25, 2025