mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 23:21:30 +00:00
fix: dispatch before_tool_call and after_tool_call hooks from both tool execution paths (openclaw#15012) thanks @Patrick-Barletta
Verified: - pnpm check Co-authored-by: Patrick-Barletta <67929313+Patrick-Barletta@users.noreply.github.com>
This commit is contained in:
@@ -72,7 +72,7 @@ describe("after_tool_call hook wiring", () => {
|
||||
} as never,
|
||||
);
|
||||
|
||||
handleToolExecutionEnd(
|
||||
await handleToolExecutionEnd(
|
||||
ctx as never,
|
||||
{
|
||||
type: "tool_execution_end",
|
||||
@@ -138,7 +138,7 @@ describe("after_tool_call hook wiring", () => {
|
||||
} as never,
|
||||
);
|
||||
|
||||
handleToolExecutionEnd(
|
||||
await handleToolExecutionEnd(
|
||||
ctx as never,
|
||||
{
|
||||
type: "tool_execution_end",
|
||||
@@ -184,7 +184,7 @@ describe("after_tool_call hook wiring", () => {
|
||||
trimMessagingToolSent: vi.fn(),
|
||||
};
|
||||
|
||||
handleToolExecutionEnd(
|
||||
await handleToolExecutionEnd(
|
||||
ctx as never,
|
||||
{
|
||||
type: "tool_execution_end",
|
||||
|
||||
Reference in New Issue
Block a user