Peter Steinberger
13563478fb
fix(mattermost): preserve safe denied-sender group history ( #115773 )
...
* fix(mattermost): record pending history for non-allowlisted group senders
When `groupPolicy` is `"allowlist"`, messages from senders not in
`groupAllowFrom` were silently dropped before reaching
`recordPendingHistoryEntryIfEnabled()`. This meant the bot had no
context of what non-allowlisted users said, breaking use cases like
conversation summarization.
This change introduces a `senderBlockedByGroupAllowlist` flag so that
non-allowlisted messages continue through the history-recording code
path before returning without generating a response.
Changes:
1. Add `senderBlockedByGroupAllowlist` flag before access check
2. `GROUP_POLICY_NOT_ALLOWLISTED` sets flag instead of returning
3. Skip `commandGate` check for blocked senders
4. Call `recordPendingHistory()` then return before response processing
Fixes openclaw/openclaw#57607
* test(mattermost): verify denied history over real transport
Co-authored-by: Jason Wang <jasonwang@barkingdog.ai >
---------
Co-authored-by: Jason Wang <jasonwang@barkingdog.ai >
2026-07-29 05:08:22 -04:00
..
2026-07-28 11:37:37 -04:00
2026-07-29 04:58:14 -04:00
2026-07-20 20:40:12 -07:00
2026-07-27 01:36:32 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 01:30:07 -04:00
2026-07-26 01:29:55 -04:00
2026-07-28 22:06:04 -04:00
2026-07-25 15:39:49 +08:00
2026-07-28 22:06:04 -04:00
2026-07-27 17:31:34 -04:00
2026-07-23 16:17:13 +00:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:11:35 -04:00
2026-07-28 22:06:04 -04:00
2026-07-27 03:20:02 -04:00
2026-07-25 03:24:19 -07:00
2026-07-28 22:06:04 -04:00
2026-07-26 01:29:55 -04:00
2026-07-27 03:20:02 -04:00
2026-07-29 00:04:52 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:36:20 -04:00
2026-07-29 00:04:52 -04:00
2026-07-25 21:51:47 -07:00
2026-07-28 09:16:35 -04:00
2026-07-28 16:48:04 +08:00
2026-07-25 05:17:09 -07:00
2026-07-28 22:06:04 -04:00
2026-07-28 22:06:04 -04:00
2026-07-29 14:05:45 +05:30
2026-07-26 01:29:55 -04:00
2026-07-27 22:55:44 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:52:17 -04:00
2026-07-19 19:09:09 -07:00
2026-07-29 04:10:06 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 02:21:20 -04:00
2026-07-29 00:04:52 -04:00
2026-07-29 04:53:11 -04:00
2026-07-28 03:41:47 -04:00
2026-07-27 07:20:25 -04:00
2026-07-29 00:04:52 -04:00
2026-07-28 08:52:21 -04:00
2026-07-28 22:06:04 -04:00
2026-07-29 02:21:20 -04:00
2026-07-29 02:21:20 -04:00
2026-07-29 04:52:17 -04:00
2026-07-26 01:29:55 -04:00
2026-07-27 03:20:02 -04:00
2026-07-29 00:04:52 -04:00
2026-07-29 04:52:17 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 00:04:52 -04:00
2026-07-28 17:25:33 -04:00
2026-07-29 04:52:17 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 00:04:52 -04:00
2026-07-29 01:33:32 -04:00
2026-07-23 16:17:13 +00:00
2026-07-29 04:10:06 -04:00
2026-07-26 01:29:55 -04:00
2026-07-24 15:15:17 -07:00
2026-07-28 22:06:04 -04:00
2026-07-29 04:52:17 -04:00
2026-07-29 05:08:22 -04:00
2026-07-29 04:58:14 -04:00
2026-07-27 06:39:47 -04:00
2026-07-28 03:41:47 -04:00
2026-07-29 00:04:52 -04:00
2026-07-25 05:30:52 -07:00
2026-07-29 00:14:31 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 02:21:20 -04:00
2026-07-28 22:06:04 -04:00
2026-07-27 16:47:41 -04:00
2026-07-29 05:05:42 -04:00
2026-07-29 16:50:38 +08:00
2026-07-29 04:10:06 -04:00
2026-07-29 05:01:27 -04:00
2026-07-28 22:06:04 -04:00
2026-07-28 22:06:04 -04:00
2026-07-27 05:44:16 -04:00
2026-07-29 03:45:56 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 04:15:03 -04:00
2026-07-28 11:37:37 -04:00
2026-07-28 08:52:21 -04:00
2026-07-29 01:40:15 -04:00
2026-07-29 16:50:38 +08:00
2026-07-26 01:29:55 -04:00
2026-07-26 01:29:55 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 04:52:17 -04:00
2026-07-29 17:06:57 +08:00
2026-07-29 00:04:52 -04:00
2026-07-29 04:10:06 -04:00
2026-07-27 14:15:53 -04:00
2026-07-27 03:49:37 -04:00
2026-07-29 04:10:06 -04:00
2026-07-25 15:39:49 +08:00
2026-07-26 01:29:55 -04:00
2026-07-28 08:41:14 -04:00
2026-07-29 04:52:17 -04:00
2026-07-29 04:52:17 -04:00
2026-07-27 03:49:37 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 00:04:52 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:11:57 -04:00
2026-07-29 04:42:23 -04:00
2026-07-29 00:04:52 -04:00
2026-07-19 20:48:44 -07:00
2026-07-29 04:10:06 -04:00
2026-07-28 22:06:04 -04:00
2026-07-26 01:29:55 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 04:10:06 -04:00
2026-07-28 22:06:04 -04:00
2026-07-27 01:29:53 -04:00
2026-07-28 08:41:14 -04:00
2026-07-29 04:15:03 -04:00
2026-07-28 08:52:21 -04:00
2026-07-25 15:39:49 +08:00
2026-07-23 16:17:13 +00:00
2026-07-29 04:52:17 -04:00
2026-07-27 20:56:44 -04:00
2026-07-29 02:21:20 -04:00
2026-07-29 00:04:52 -04:00
2026-07-27 16:47:41 -04:00
2026-07-29 04:45:50 -04:00
2026-07-29 04:10:06 -04:00
2026-07-29 04:11:57 -04:00
2026-07-25 21:51:47 -07:00
2026-07-27 20:20:13 -04:00
2026-07-25 21:51:47 -07:00