Skip to content

Commit ba69cd7

Browse files
committed
Cleanup
1 parent 9801894 commit ba69cd7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/core/prompts/tools/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,11 @@ export function getToolDescriptionsForMode(
6565
}
6666
})
6767

68-
// Filter out apply_diff if diffStrategy is not provided
69-
if (!diffStrategy) {
70-
tools.delete("apply_diff")
71-
}
72-
7368
// Add always available tools
7469
ALWAYS_AVAILABLE_TOOLS.forEach((tool) => tools.add(tool))
7570

7671
// Map tool descriptions for allowed tools
7772
const descriptions = Array.from(tools).map((toolName) => {
78-
// Skip apply_diff tool description if diffStrategy is not provided
79-
if (toolName === "apply_diff" && !diffStrategy) {
80-
return undefined
81-
}
82-
8373
const descriptionFn = toolDescriptionMap[toolName]
8474
if (!descriptionFn) {
8575
return undefined

0 commit comments

Comments
 (0)