File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type { EventLogEntry } from "../../api/event-log.ts";
44import { icons } from "../../components/icons.ts" ;
55import { t } from "../../i18n/index.ts" ;
66import { formatTimeMs } from "../../lib/format.ts" ;
7+ import { truncateUtf16Safe } from "@openclaw/normalization-core/utf16-slice" ;
78import { formatEventPayload } from "../../lib/presenter.ts" ;
89
910type OverviewEventLogProps = {
@@ -32,7 +33,7 @@ export function renderOverviewEventLog(props: OverviewEventLogProps) {
3233 < span class ="ov-event-log-name "> ${ entry . event } </ span >
3334 ${ entry . payload
3435 ? html `< span class ="ov-event-log-payload muted "
35- > ${ formatEventPayload ( entry . payload ) . slice ( 0 , 120 ) } </ span
36+ > ${ truncateUtf16Safe ( formatEventPayload ( entry . payload ) , 120 ) } </ span
3637 > `
3738 : nothing }
3839 </ div >
You can’t perform that action at this time.
0 commit comments