fix: restore skill filtering by agent permissions (#7042)

This commit is contained in:
M. Adel Alhashemi
2026-01-06 21:01:37 +03:00
committed by GitHub
parent d76d6db589
commit 485aadcbfa
2 changed files with 17 additions and 19 deletions

View File

@@ -675,7 +675,7 @@ export namespace SessionPrompt {
},
})
for (const item of await ToolRegistry.tools(input.model.providerID)) {
for (const item of await ToolRegistry.tools(input.model.providerID, input.agent)) {
const schema = ProviderTransform.schema(input.model, z.toJSONSchema(item.parameters))
tools[item.id] = tool({
id: item.id as any,