zeroclaw/src/agent/loop_
Preventnetworkhacking d89e7ab415 fix(utf8): prevent panic on CJK text truncation [CDV-27]
Fix UTF-8 boundary panics in two locations not covered by PR #2154:

1. telegram.rs:3112 - OTP/approval message preview truncation
   - Changed from byte-based `&raw_args[..260]` to char-based truncation
   - Uses existing `truncate_with_ellipsis` utility

2. detection.rs:222 - Tool output hash prefix
   - Changed from `&output[..4096]` to UTF-8-safe boundary
   - Uses existing `floor_utf8_char_boundary` utility

Added test: hash_output_utf8_boundary_safe() verifies no panic on CJK text.

Fixes #2276
2026-02-28 16:35:09 -05:00
..
context.rs fix(memory): thread session IDs through runtime paths 2026-02-28 15:00:27 -05:00
detection.rs fix(utf8): prevent panic on CJK text truncation [CDV-27] 2026-02-28 16:35:09 -05:00
execution.rs refactor(agent): split loop loop_ concerns into focused submodules 2026-02-25 02:09:23 +08:00
history.rs fix(agent): avoid orphan tool messages after compaction 2026-02-28 14:41:13 -05:00
parsing.rs feat(memory): add observation memory tool 2026-02-28 13:32:13 -05:00