The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/ai-prompt-template-clamp has failed. Run started by GitHub user lizhimins (triggered by lizhimins).
Head commit for run: 29acf6dc48cdf53ddffe0e23302acb6a991b3188 / Apulupie <[email protected]> fix(ai): clamp prompt template text on character boundaries Clamp a saved prompt template's text on character boundaries. normalizeText capped the title, the tags and the body with slice, which counts UTF-16 units, so a supplementary character straddling the cap was cut in half: a title of 79 'a's followed by an emoji kept the 79 'a's and the emoji's high surrogate, and the template list rendered the unpaired surrogate as the replacement glyph. The clamp now drops the straddling character whole and keeps the same budget in UTF-16 units - the unit the backend's @Size counts on the message a template body becomes. This is the copy #5213 did not cover when it routed conversation titles through TextBounds.truncate for the same reason. Report URL: https://github.com/apache/rocketmq-dashboard/actions/runs/45941599912 With regards, GitHub Actions via GitBox
