From b5d9f7202312f855ff5a3fae065026a3a52f589a Mon Sep 17 00:00:00 2001 From: Chummy Date: Mon, 16 Feb 2026 18:58:35 +0800 Subject: [PATCH] test(channels): neutralize UTF-8 truncation regression fixture (#289) * test(channels): neutralize UTF-8 truncation regression fixture * fix(ci): resolve fmt drift and discord test config init --- src/channels/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels/mod.rs b/src/channels/mod.rs index e7e3671..6ef69c6 100644 --- a/src/channels/mod.rs +++ b/src/channels/mod.rs @@ -1449,7 +1449,7 @@ mod tests { #[test] fn channel_log_truncation_is_utf8_safe_for_multibyte_text() { - let msg = "你好!我是监察,武威节点的 AI 助手。目前节点运行正常,有什么需要我帮助的吗?"; + let msg = "Hello from ZeroClaw 🌍. Current status is healthy, and café-style UTF-8 text stays safe in logs."; // Reproduces the production crash path where channel logs truncate at 80 chars. let result = std::panic::catch_unwind(|| crate::util::truncate_with_ellipsis(msg, 80));