Files
openclaw/src/cli
wm0018 7de325d060 fix: keep task title truncation UTF-16 safe in restart/diagnostic output (#101934)
* 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>
2026-07-09 07:10:25 +01:00
..
2026-06-04 19:39:51 -04:00
2026-06-04 10:48:30 -04:00
2026-06-04 10:55:01 -04:00
2026-06-04 10:55:01 -04:00
2026-06-04 10:55:01 -04:00
2026-06-04 19:32:43 -04:00
2026-06-03 18:23:39 -04:00
2026-06-04 19:32:43 -04:00
2026-06-04 19:32:43 -04:00
2026-06-04 19:32:43 -04:00
2026-06-04 11:07:54 -04:00