Roo-Code/src/core/tools
roomote[bot] e7f599bfb9
fix: use askApproval wrapper in insert_content and search_and_replace tools (#7649)
Fixes issue where isWriteProtected was incorrectly passed as the partial flag
to task.ask(), causing "Current ask promise was ignored (#1)" error.

Both tools now use the askApproval wrapper function which correctly handles
the parameter ordering, passing undefined for progressStatus and isWriteProtected
as the fourth parameter.

Fixes #7648

Co-authored-by: Roo Code <roomote@roocode.com>
2025-09-03 22:35:40 -04:00
..
__tests__ feat: add run_slash_command tool for executing slash commands (#7473) 2025-09-03 14:14:55 -04:00
helpers feat(tools): add image support to read_file tool (#5172) 2025-07-28 23:23:33 -04:00
accessMcpResourceTool.ts fix access_mcp_resource fails to handle images correctly (#5254) 2025-07-02 23:50:15 -04:00
applyDiffTool.ts feat: Add experimental setting to prevent editor focus disruption (#6214) 2025-07-28 23:14:53 -04:00
askFollowupQuestionTool.ts Add optional mode suggestions to follow-up questions (#5200) 2025-06-27 16:26:17 -04:00
attemptCompletionTool.ts Task and TaskProvider event emitter cleanup + a few new events (#6606) 2025-08-02 11:12:44 -07:00
browserActionTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
codebaseSearchTool.ts fix: Use cline.cwd as primary source for workspace path in codebaseSearchTool (#6902) 2025-08-14 18:17:14 -04:00
executeCommandTool.ts Fix terminal reuse logic (#7157) 2025-08-16 23:10:59 -07:00
fetchInstructionsTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
generateImageTool.ts feat: optimize memory usage for image handling in webview (#7556) 2025-08-30 15:57:30 -04:00
insertContentTool.ts fix: use askApproval wrapper in insert_content and search_and_replace tools (#7649) 2025-09-03 22:35:40 -04:00
listCodeDefinitionNamesTool.ts Make listing tools respect auto-approve settings for outside of the workspace (#4682) 2025-06-13 23:12:31 -04:00
listFilesTool.ts fix: hide .rooignore'd files from environment details by default (#7369) 2025-08-27 18:09:06 -04:00
multiApplyDiffTool.ts fix: add type check before calling .match() on diffItem.content (#6905) (#6906) 2025-08-14 20:05:45 -04:00
newTaskTool.ts Publish subtask events (#7626) 2025-09-03 04:05:54 -07:00
readFileTool.ts feat(tools): add image support to read_file tool (#5172) 2025-07-28 23:23:33 -04:00
runSlashCommandTool.ts feat: add run_slash_command tool for executing slash commands (#7473) 2025-09-03 14:14:55 -04:00
searchAndReplaceTool.ts fix: use askApproval wrapper in insert_content and search_and_replace tools (#7649) 2025-09-03 22:35:40 -04:00
searchFilesTool.ts Adjust searching outside of the workspace to respect the auto-approve… (#4670) 2025-06-13 18:49:39 -04:00
simpleReadFileTool.ts feat: simple read_file tool for single-file-only models (#7222) 2025-08-19 10:57:57 -07:00
switchModeTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
ToolRepetitionDetector.ts fix: exclude browser scroll actions from repetition detection (#7471) 2025-08-27 20:56:36 -04:00
updateTodoListTool.ts feat: add optional todos parameter to new_task tool with experimental setting (#6329) (#6775) 2025-08-21 13:02:05 -07:00
useMcpToolTool.ts feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
validateToolUse.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
writeToFileTool.ts feat: Add experimental setting to prevent editor focus disruption (#6214) 2025-07-28 23:14:53 -04:00