mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-28 08:43:36 +00:00
truncateText sliced the approval card text paragraph with String.slice, which can cut through an astral character's surrogate pair (e.g. an emoji straddling the 1797-char limit), leaving a lone surrogate in the card text sent to Google Chat. Use truncateUtf16Safe from the plugin SDK so truncation never splits a surrogate pair, keeping the '...' suffix and the existing length budget. Adds tests asserting the truncated Command card text stays UTF-16 well formed and that an astral character is preserved when it fits.
OpenClaw Google Chat
Official OpenClaw channel plugin for Google Chat spaces and direct messages.
Install from OpenClaw:
openclaw plugin add @openclaw/googlechat
Configure the Google Chat app credentials and allowed spaces in OpenClaw. The plugin lets agents receive Google Chat events and reply through the configured app.