Skip to content

Commit 3adda59

Browse files
committed
Cleanup
1 parent 0ddd149 commit 3adda59

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/prompts/tools/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,10 @@ export function getToolDescriptionsForMode(
122122
return undefined
123123
}
124124

125-
const description = descriptionFn({
125+
return descriptionFn({
126126
...args,
127127
toolOptions: undefined, // No tool options in group-based approach
128128
})
129-
130-
// Filter out empty descriptions (e.g., when update_todo_list is disabled)
131-
return description && description.trim() ? description : undefined
132129
})
133130

134131
return `# Tools\n\n${descriptions.filter(Boolean).join("\n\n")}`

0 commit comments

Comments
 (0)