diff --git a/.pi/hooks/test-command.ts b/.pi/hooks/test-command.ts index a183a56d..52382d85 100644 --- a/.pi/hooks/test-command.ts +++ b/.pi/hooks/test-command.ts @@ -33,12 +33,15 @@ export default function (pi: HookAPI) { pi.registerCommand("test-msg", { description: "Send a test custom message", handler: async () => { - pi.sendMessage({ - customType: "test-info", - content: "This is a test message with custom rendering!", - display: true, - details: { timestamp: Date.now(), source: "test-command hook" }, - }); + pi.sendMessage( + { + customType: "test-info", + content: "This is a test message with custom rendering!", + display: true, + details: { timestamp: Date.now(), source: "test-command hook" }, + }, + true, // triggerTurn: start agent run + ); }, });