-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: remove search_and_replace tool from codebase #8892
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
- Deleted src/core/tools/searchAndReplaceTool.ts - Removed import and case handling from presentAssistantMessage.ts - Removed from toolNames array in packages/types/src/tool.ts - Removed SearchAndReplaceToolUse interface from src/shared/tools.ts - Deleted src/core/prompts/tools/search-and-replace.ts - Removed from tool description map in prompts/tools/index.ts - Removed from prompts rules and responses - Removed from test files - Snapshot files will be regenerated on test run Fixes #8891
… and ExtensionMessage
PR Review UpdateI've reviewed the latest changes and confirmed that all previously identified issues have been successfully resolved. All Issues Resolved ✅
Recent Improvements✅ Removed obsolete E2E test file What Was Done Well (from previous reviews)✅ Core implementation file deleted ( Verification Complete
This PR has successfully accomplished its goal of completely removing the |
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.
No issues found beyond what was already noted in the review summary.
|
@roomote run PR Fixeer mode on this PR |
|
ACK: Starting PR Fixer mode on this PR. Plan:
|
…ce tool (UI + rules)
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.
Review complete. The recent changes successfully cleaned up additional references to search_and_replace in rule files and UI code. However, there is still one outstanding issue that needs to be addressed before this PR can be approved (see the updated checklist in my top-level comment).
|
PR Fixer summary: Changes applied on branch fix/remove-search-and-replace-tool:
Repository scan results:
Local verification:
CI status:
Commit pushed:
This PR is now consistent with removal of the search_and_replace tool and ready for review and merge. |
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.
All previously identified issues have been resolved. The PR successfully completes the removal of the search_and_replace tool from the codebase.
They were. Fixed. |
Summary
This PR addresses Issue #8891 by completely removing the
search_and_replacetool from the codebase.Changes Made
Core Implementation
src/core/tools/searchAndReplaceTool.ts- the main implementation filepresentAssistantMessage.tspackages/types/src/tool.tsType System & Interfaces
SearchAndReplaceToolUseinterface fromsrc/shared/tools.tsTOOL_GROUPSandTOOL_DISPLAY_NAMESExtensionMessage.tstool typesPrompt System
src/core/prompts/tools/search-and-replace.tsUI & Localization
ChatRow.tsxcomponentTests
Testing
Impact
This is a breaking change that removes a feature. The
search_and_replacetool will no longer be available to users. Other editing tools (apply_diff,write_to_file,insert_content) remain available for file modifications.Closes #8891
Important
Remove
search_and_replacetool from codebase, affecting core implementation, type system, UI, and tests.searchAndReplaceTool.ts.presentAssistantMessage.ts.tool.tstype definitions.SearchAndReplaceToolUseinterface fromtools.ts.TOOL_GROUPSandTOOL_DISPLAY_NAMES.ExtensionMessage.tstool types.search-and-replace.tsdescription file.ChatRow.tsx.search-and-replace.test.tsfile.This description was created by
for 2017d37. You can customize this summary. It will automatically update as commits are pushed.