From 2b66492a878c01c8709f9cd059bb33fffaf66830 Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Sat, 2 May 2026 10:46:54 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@2b88dc0714b97c57a095e814f436ffe93ead54fc --- .openclaw-sync/source.json | 4 ++-- docs/automation/hooks.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index cca76d7c1..fb4efcb15 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "eb3e4f20a0af500f2b746c83a2c9bf9ccba13891", - "syncedAt": "2026-05-02T10:37:41.377Z" + "sha": "2b88dc0714b97c57a095e814f436ffe93ead54fc", + "syncedAt": "2026-05-02T10:45:01.158Z" } diff --git a/docs/automation/hooks.md b/docs/automation/hooks.md index 36d017b93..48c497687 100644 --- a/docs/automation/hooks.md +++ b/docs/automation/hooks.md @@ -114,7 +114,7 @@ Each event includes: `type`, `action`, `sessionKey`, `timestamp`, `messages` (pu **Command events** (`command:new`, `command:reset`): `context.sessionEntry`, `context.previousSessionEntry`, `context.commandSource`, `context.workspaceDir`, `context.cfg`. -**Message events** (`message:received`): `context.from`, `context.content`, `context.channelId`, `context.metadata` (provider-specific data including `senderId`, `senderName`, `guildId`). +**Message events** (`message:received`): `context.from`, `context.content`, `context.channelId`, `context.metadata` (provider-specific data including `senderId`, `senderName`, `guildId`). `context.content` prefers a nonblank command body for command-like messages, then falls back to the raw inbound body and generic body; it does not include agent-only enrichment such as thread history or link summaries. **Message events** (`message:sent`): `context.to`, `context.content`, `context.success`, `context.channelId`.