Skip to content

Commit 97e825c

Browse files
Change prunable tool check from >0 to >1
1 parent f80aa37 commit 97e825c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fetch-wrapper/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function installFetchWrapper(
8686
const alreadyPruned = state.prunedIds.get(sessionId) ?? []
8787
const alreadyPrunedLower = new Set(alreadyPruned.map(id => id.toLowerCase()))
8888
const unpruned = toolIds.filter(id => !alreadyPrunedLower.has(id.toLowerCase()))
89-
if (unpruned.length > 0) {
89+
if (unpruned.length > 1) {
9090
const { duplicateIds } = detectDuplicates(state.toolParameters, unpruned, config.protectedTools)
9191
if (duplicateIds.length > 0) {
9292
state.prunedIds.set(sessionId, [...new Set([...alreadyPruned, ...duplicateIds])])

0 commit comments

Comments
 (0)