permissions disallow support (#1627)

This commit is contained in:
Aiden Cline
2025-08-05 19:14:28 -05:00
committed by GitHub
parent 6b25b7e95e
commit a48274f82b
4 changed files with 29 additions and 14 deletions

View File

@@ -728,7 +728,7 @@ export namespace Session {
const enabledTools = pipe(
mode.tools,
mergeDeep(ToolRegistry.enabled(input.providerID, input.modelID)),
mergeDeep(await ToolRegistry.enabled(input.providerID, input.modelID)),
mergeDeep(input.tools ?? {}),
)
for (const item of await ToolRegistry.tools(input.providerID, input.modelID)) {