mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 08:31:49 -06:00
fae5421f81
* fix(diagnostics-prometheus): use truncateUtf16Safe for error message truncation The safeErrorMessage function uses naive .slice(0, 500) on error messages which can split surrogate pairs. Replace with truncateUtf16Safe(). * test(diagnostics-prometheus): cover UTF-16-safe errors --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>