nightq
f371453ec2
fix(matrix): strip mention prefix before slash command matching
...
Fixes openclaw#68547
Root cause: When a user sends a message like `@bot:server /new` in a Matrix room,
the slash command was not recognized because the mention prefix was not stripped
before checking for slash commands via hasControlCommand().
Fix: Added stripMatrixMentionPrefixes() function that strips bot mention prefixes
from the beginning of messages before passing text to hasControlCommand(). This
follows the same pattern used by Feishu (normalizeMentions) and ensures that
slash commands work correctly when the bot is explicitly mentioned.
- Added stripMatrixMentionPrefixes() helper function in handler.ts
- Applied stripping before hasControlCommand() call
- Added comprehensive test coverage in handler.strip-mention.test.ts
2026-04-19 16:48:43 -04:00
..
2026-04-19 02:09:43 +01:00
2026-04-18 20:31:41 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 13:42:56 -07:00
2026-04-19 02:09:43 +01:00
2026-04-19 12:21:23 +02:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-17 10:14:00 +05:30
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 17:00:30 +02:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 18:50:54 +08:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 16:48:43 -04:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-17 10:14:00 +05:30
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 16:46:49 -04:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-03 16:39:47 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-17 10:14:00 +05:30
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-17 10:14:00 +05:30
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 14:20:46 -03:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-19 02:09:43 +01:00
2026-04-17 02:23:49 -04:00
2026-03-28 20:22:03 -04:00
2026-04-06 19:15:31 +01:00
2026-04-06 15:38:04 +01:00
2026-04-09 23:59:00 +01:00
2026-04-14 14:59:01 +01:00