-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Correct tool use suggestion to improve model adherence to suggestion #8315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
src/core/tools/multiApplyDiffTool.ts
Outdated
| 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 |
There was a problem hiding this comment.
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").
src/core/tools/multiApplyDiffTool.ts
Outdated
| Recovery suggestions: | ||
| 1. Use <read_file> to examine the current file content | ||
| 1. Use the read_file tool to verify the current file content |
There was a problem hiding this comment.
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.
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.
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.tsfor clarity by replacing<read_file>withthe read_file tool.multiApplyDiffTool.tsto replace<read_file>withthe read_file toolfor clarity.This description was created by
for 7b5fbbd. You can customize this summary. It will automatically update as commits are pushed.