返回顶部
m

matrix-mentions-patch

Use when a user reports Matrix @mentions not working, notifications not triggering, asks to fix/update the mentions patch, or asks to install/apply the patch. This skill should only be used when explicitly requested.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
80
下载量
0
收藏
概述
安装方式
版本历史

matrix-mentions-patch

# Matrix Mentions Patch Patches OpenClaw's Matrix plugin to attach `m.mentions` to outbound messages so clients like Element properly notify mentioned users. ## When to Use - User reports @mentions not triggering notifications - User asks to "fix Matrix mentions" or "update the mentions patch" - User asks to "install" or "apply" the mentions patch **Only apply when requested.** Do not auto-apply. ## Patch Status Check Before applying, check if already patched: ```bash grep -l "extractMentionsFromText" ~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/extensions/matrix/src/matrix/send/formatting.ts ``` - **Already patched**: Output will show the file. No action needed — just use correct @mention format. - **Not patched**: No output. Proceed to apply the patch. ## How to Apply (First-time Setup) ### Step 1: Run the patch script ```bash node ~/.openclaw/workspace/skills/matrix-mentions-patch/patch-matrix-mentions.mjs ``` The script will: 1. Locate `auth-profiles-*.js` in OpenClaw's dist/ 2. Create a `.bak` backup automatically 3. Patch in-place ### Step 2: Restart the gateway ```bash openclaw gateway restart ``` ### Step 3: Verify Send a message with a full Matrix ID mention: ``` @username:matrix.biochao.cc ``` The mentioned user should see a notification. ## Routine Use (After Patched) Once patched, no further action needed. Just ensure correct @mention format: **正确格式:** ``` @username:matrix.biochao.cc ``` **错误格式:** - Markdown link: `[](https://matrix.to/#/@user)` - HTML span: `<span>@user</span>` - 任何包装格式 直接发送纯文本 Matrix ID,客户端即可正确识别并通知。 ## Re-applying After Updates Every `openclaw update` may overwrite the patch. Re-apply by running: ```bash node ~/.openclaw/workspace/skills/matrix-mentions-patch/patch-matrix-mentions.mjs openclaw gateway restart ``` ## Undoing the Patch Restore from backup: ```bash cp ~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/auth-profiles-*.js.bak \ ~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/auth-profiles-*.js openclaw gateway restart ``` ## Target File ``` ~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/auth-profiles-*.js ``` ## Requirements - OpenClaw core - Matrix plugin configured and working - Node.js runtime

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 matrix-mentions-patch-1775941361 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 matrix-mentions-patch-1775941361 技能

通过命令行安装

skillhub install matrix-mentions-patch-1775941361

下载 Zip 包

⬇ 下载 matrix-mentions-patch v1.1.0

文件大小: 3.7 KB | 发布时间: 2026-4-12 10:32

v1.1.0 最新 2026-4-12 10:32
Add patch status check, clarify first-time setup vs routine use

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部