-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Merged pr 3086 #3639
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
Merged pr 3086 #3639
Conversation
β¦pport and improved parameter handling fix(read_file): change return to continue on approval rejection in readFileTool Enhance readFileTool with improved error handling and validation - Introduced a FileEntry interface for better type management. - Added validation for start_line and end_line to ensure proper ranges. - Implemented RooIgnore validation before processing files. - Enhanced error handling with dedicated functions for file and global errors. - Streamlined file reading logic to handle binary files, definitions-only mode, and line thresholds more effectively. - Improved user feedback for empty files and read limits. chore: update Jest snapshot for system prompt tool usage Refactor read-file tool to support XML input format and multiple line ranges - Updated the `getReadFileDescription` function to reflect new XML structure for file reading requests. - Modified `readFileTool` to parse XML input, allowing multiple line ranges for each file. - Removed old parsing logic that handled line ranges as separate parameters. - Implemented validation for line ranges and ensured proper error handling for file access. - Adjusted approval messaging to accommodate new line range format. - Enhanced error handling to provide consistent feedback for file read errors. update from KJ7LNW comment feat: add maxConcurrentFileReads setting to enhance read_file tool performance feat: enhance readFileTool with XML parsing and file processing state tracking feat: enhance readFileTool to include user feedback handling and processing state tracking chore: clean up read_file tool documentation by removing extra newlines feat: update read_file tool tests to handle user feedback and approval states feat: add tests for feedback message formatting and XML special character handling in read_file tool Implement code changes to enhance functionality and improve performance feat: increase max concurrent file reads and adjust slider range in settings feat: increase default max concurrent file reads from 5 to 15 across settings and context management
Makes `src/core/tools/applyDiffTool.ts` backward compatible by allowing it to process both the new XML-based `args` parameter and the legacy `path`, `diff`, and `start_line` parameters. This change also resolves TypeScript errors that arose from duplicated code during the initial refactoring for multi-diff support.
|
| "args", | ||
| "start_line", | ||
| "end_line", | ||
| "args", |
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.
Duplicate tool parameter args found in the toolParamNames array. There is already an args entry at line 63. Duplicates can cause confusion in type inference and may lead to unintended behavior. Remove the extra duplicate entry.
This comment was generated because it violated a code review rule: mrule_aQsEnH8jWdOfHq2Z.
Related GitHub Issue
Closes: #
Description
Test Procedure
Type of Change
srcor test files.Pre-Submission Checklist
npm run lint).console.log) has been removed.npm test).mainbranch.npm run changesetif this PR includes user-facing changes or dependency updates.Screenshots / Videos
Documentation Updates
Additional Notes
Important
Enhance
read_fileandapply_difftools to support multiple file operations and add a setting for concurrent file reads.readFileTool: Now supports reading multiple files concurrently usingargsparameter withfileandline_rangeelements.applyDiffTool: Updated to handle multiple diffs usingargsparameter withfileanddiffelements.maxConcurrentFileReadssetting inContextManagementSettingsto limit concurrent file reads.ContextManagementSettings.tsxandSettingsView.tsxto includemaxConcurrentFileReadsslider.settings.jsonforcaandzh-CNlocales to includemaxConcurrentFileReadsdescriptions.This description was created by
for d3b4fbf. You can customize this summary. It will automatically update as commits are pushed.