mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
* fix(matrix): truncate inbound preview on UTF-16 code-point boundary The matrix inbound verbose preview used bodyText.slice(0, 200) before logging. When a supplementary-plane character (emoji, extended CJK) straddles the 200th code unit, the slice splits its surrogate pair and emits a lone surrogate into the verbose log line. Lone surrogates corrupt JSON log serialization, break terminal rendering, and crash UTF-8-validating log shippers. Use the shared truncateUtf16Safe helper (already used by the mattermost sibling monitor after #101630) to keep complete surrogate pairs intact. No behavior change for ASCII input; the preview is still capped at 200 code units. Co-Authored-By: Claude <noreply@anthropic.com> * test(matrix): fix inbound-preview test for lint and lib target - Avoid String.prototype.isWellFormed (ES2024 lib): use the encodeURIComponent well-formedness probe instead, which works on the project's TS lib target. - Replace literal string concatenation with template strings to satisfy the no-useless-concat lint rule. No behavior change in the assertions. Co-Authored-By: Claude <noreply@anthropic.com> * fix(channels): keep inbound log previews UTF-16 safe * test(line): type verbose preview fixtures --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .npmignore | ||
| api.ts | ||
| auth-presence.ts | ||
| CHANGELOG.md | ||
| channel-plugin-api.ts | ||
| cli-metadata.ts | ||
| contract-api.ts | ||
| doctor-contract-api.test.ts | ||
| doctor-contract-api.ts | ||
| helper-api.ts | ||
| index.test.ts | ||
| index.ts | ||
| npm-shrinkwrap.json | ||
| openclaw.plugin.json | ||
| package.json | ||
| plugin-entry.handlers.runtime.ts | ||
| README.md | ||
| runtime-api.ts | ||
| runtime-heavy-api.ts | ||
| runtime-setter-api.ts | ||
| secret-contract-api.ts | ||
| session-binding-contract-api.ts | ||
| setup-entry.ts | ||
| setup-plugin-api.ts | ||
| SPEC-SUPPORT.md | ||
| subagent-hooks-api.ts | ||
| test-api.ts | ||
| thread-binding-api.ts | ||
| thread-bindings-runtime.ts | ||
| tsconfig.json | ||
OpenClaw Matrix
Official OpenClaw channel plugin for Matrix rooms and direct messages.
Install from OpenClaw:
openclaw plugin add @openclaw/matrix
Configure the Matrix homeserver and bot credentials in OpenClaw. The plugin lets agents join configured rooms, receive messages, and reply through Matrix.