Skip to content

Commit 57566b5

Browse files
JohnnyJohnny
authored andcommitted
fix: migrate auto-recall from before_agent_start to before_prompt_build
1 parent 1fba901 commit 57566b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/memos-local-openclaw/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ const memosLocalPlugin = {
928928

929929
// ─── Auto-recall: inject relevant memories before agent starts ───
930930

931-
api.on("before_agent_start", async (event: { prompt?: string; messages?: unknown[] }, hookCtx?: { agentId?: string; sessionKey?: string }) => {
931+
api.on("before_prompt_build", async (event: { prompt?: string; messages?: unknown[] }, hookCtx?: { agentId?: string; sessionKey?: string }) => {
932932
if (!allowPromptInjection) return {};
933933
if (!event.prompt || event.prompt.length < 3) return;
934934

0 commit comments

Comments
 (0)