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
commit 485aadcbfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,