update with comment in pr

This commit is contained in:
sam hoang
2025-01-28 11:18:51 +07:00
parent 0fa6fd4ddb
commit 179ea7904b
3 changed files with 2 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ export function isToolAllowedForMode(
const filePath = toolParams?.path
if (
filePath &&
(toolParams.diff || toolParams.content) &&
(toolParams.diff || toolParams.content || toolParams.operations) &&
!doesFileMatchRegex(filePath, options.fileRegex)
) {
throw new FileRestrictionError(mode.name, options.fileRegex, options.description, filePath)