fix tool execute after hook boundary

This commit is contained in:
Enoch
2026-05-07 20:45:27 +08:00
committed by YeonGyu-Kim
parent ad10450b5c
commit d11613999a
2 changed files with 35 additions and 2 deletions
+10 -1
View File
@@ -182,6 +182,15 @@ export function createToolExecuteAfterHandler(args: {
return
}
await runToolExecuteAfterHooks()
try {
await runToolExecuteAfterHooks()
} catch (error) {
log("[tool-execute-after] Failed to process hooks", {
tool: input.tool,
sessionID: input.sessionID,
callID: input.callID ?? input.callId ?? input.call_id,
error,
})
}
}
}