hooks: pass sessionKey to embedded after tool call context

This commit is contained in:
Vincent Koc
2026-03-02 12:23:25 -08:00
parent 65b1bebe7d
commit 44d9d13fcf

View File

@@ -427,7 +427,7 @@ export async function handleToolExecutionEnd(
.runAfterToolCall(hookEvent, {
toolName,
agentId: undefined,
sessionKey: undefined,
sessionKey: ctx.params.sessionKey,
})
.catch((err) => {
ctx.log.warn(`after_tool_call hook failed: tool=${toolName} error=${String(err)}`);