Skip to content

Commit 23bd27f

Browse files
Change prunable tool check from >0 to >1
1 parent 56cb054 commit 23bd27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)