openclaw/extensions/mattermost
huangjianxiong ac71074807
fix(mattermost): keep slash command error truncation UTF-16 safe (#102607)
* fix(mattermost): keep slash command error truncation UTF-16 safe

Replace `.slice(0, 300)` and `.slice(0, 200)` with `truncateUtf16Safe`
in sanitizeCommandLookupError and sanitizeMattermostLogValue to prevent
surrogate pair corruption.

Ref. lsr911 pattern — mechanical substitution, no behavior change.

* test(mattermost): cover UTF-16-safe slash logs

Co-authored-by: 黄剑雄0668001315 <huang.jianxiong@xydigit.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-09 12:20:38 +01:00
..
src fix(mattermost): keep slash command error truncation UTF-16 safe (#102607) 2026-07-09 12:20:38 +01:00
api.ts
channel-plugin-api.ts
channel-plugin-runtime.ts
doctor-contract-api.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
gateway-auth-api.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
index.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
npm-shrinkwrap.json chore(release): close out 2026.6.11 on main 2026-06-30 11:31:08 -07:00
openclaw.plugin.json fix(plugins): remove simpleicons icon color paths (#95987) 2026-06-23 12:16:02 -07:00
package.json fix(release): use workspace host deps in release lockfile 2026-06-30 15:54:12 -07:00
policy-api.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
README.md feat(plugins): externalize additional official plugins (#95683) 2026-06-22 16:12:51 +08:00
runtime-api.ts refactor(path3): narrow bundled session runtime barrels (#96507) 2026-06-24 10:33:40 -07:00
secret-contract-api.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
setup-entry.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
slash-route-api.ts docs: document large extension sources 2026-06-04 21:40:44 -04:00
tsconfig.json

Mattermost OpenClaw channel

Official OpenClaw channel plugin for Mattermost.

Install

openclaw plugins install @openclaw/mattermost

Docs

See docs/channels/mattermost.md in the OpenClaw repository, or the published docs at https://docs.openclaw.ai/channels/mattermost.