mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-29 13:43:39 +00:00
truncateSlackMrkdwn cut approval Block Kit mrkdwn (Command/Request/ plugin description) with String.slice(0, maxChars - 1), which can split an astral character's surrogate pair at the 2600-char preview limit, leaving a lone surrogate in the chat.postMessage/chat.update payload. Slice with sliceUtf16Safe so truncation never splits a surrogate pair, keeping the existing ellipsis suffix and length budget. Adds tests asserting exec command and plugin request mrkdwn stay free of lone surrogates, plus a BMP regression keeping the existing limit.
OpenClaw Slack
Official OpenClaw channel plugin for Slack channels, DMs, commands, and app events.
Install from OpenClaw:
openclaw plugin add @openclaw/slack
Configure the Slack app credentials and allowed workspaces/channels in OpenClaw. The plugin lets agents receive Slack events and reply through the configured Slack app.