mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 00:23:25 -06:00
7de325d060
* fix: keep task title truncation UTF-16 safe in restart/diagnostic output Three private copies of formatTaskBlocker share the same pattern — task.title.slice(0, 80) — which can split surrogate pairs in task titles, producing broken U+FFFD in restart blocker diagnostics, gateway reload logs, and CLI run-loop output. Replace raw slice with truncateUtf16Safe in all three locations. Relevant files: - gateway/server-reload-handlers.ts:270 - infra/restart-coordinator.ts:73 - cli/gateway-cli/run-loop.ts:569 * refactor(tasks): centralize restart blocker formatting * fix(tasks): keep restart formatter side-effect free * refactor(tasks): tighten restart blocker ownership --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>