diff --git a/src/hooks/openclaw-sender/index.ts b/src/hooks/openclaw-sender/index.ts index d3e85f90a..6d87f749c 100644 --- a/src/hooks/openclaw-sender/index.ts +++ b/src/hooks/openclaw-sender/index.ts @@ -12,8 +12,12 @@ export function createOpenClawSenderHook( event: { type: string; properties?: Record }; }) => { const { type, properties } = input.event; + const info = properties?.info as Record | undefined; const context: OpenClawContext = { - sessionId: (properties?.sessionID as string) || getMainSessionID(), + sessionId: + (properties?.sessionID as string) || + (info?.id as string) || + getMainSessionID(), projectPath: ctx.directory, };