fix(codex): use truncateUtf16Safe for attempt notification text truncation#101534
Conversation
…ation .slice(0, 237) on notification text can split surrogate pairs from CJK characters or emoji in agent output, producing U+FFFD in Codex desktop notifications. Co-Authored-By: Claude <[email protected]>
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
|
Land-ready at exact reviewed head
Direct dependency-contract inspection used Codex No docs or changelog change is required for this internal diagnostic-boundary correction. |
|
Merged via squash.
|
…ation (openclaw#101534) * fix(codex): use truncateUtf16Safe for attempt notification text truncation .slice(0, 237) on notification text can split surrogate pairs from CJK characters or emoji in agent output, producing U+FFFD in Codex desktop notifications. Co-Authored-By: Claude <[email protected]> * test(codex): cover UTF-16-safe attempt previews * test(codex): assign notification coverage to a shard --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…ation (openclaw#101534) * fix(codex): use truncateUtf16Safe for attempt notification text truncation .slice(0, 237) on notification text can split surrogate pairs from CJK characters or emoji in agent output, producing U+FFFD in Codex desktop notifications. Co-Authored-By: Claude <[email protected]> * test(codex): cover UTF-16-safe attempt previews * test(codex): assign notification coverage to a shard --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Codex attempt notifications truncate agent output with
.slice(0, 237). When the slice boundary lands mid-surrogate-pair (common with CJK characters or emoji in agent output), the U+FFFD replacement character appears in desktop notification text.Why This Change Was Made
Replace
.slice(0, 237)withtruncateUtf16Safe().Evidence
Part of the UTF-16 safety sweep following Alix-007 (#101311), wangmiao (#101421), and ly85206559 (#101029).
Issue
N/A
🤖 Generated with Claude Code