From 2b43f54669afcc554af7e7ad92ec914743b68b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 23 Jul 2026 00:51:04 -0400 Subject: [PATCH] test(conversation): fix code-preview fixture to actually exceed the char cap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The multibyte-truncation test used 80 chars — below the 100-char cap, so the truncation assertion failed (the previous commit's suite count was misread; the FIX itself was correct and the panic repro held). 120 chars now exercises both the boundary safety and the truncation. --- crates/codegen/kigi-sampling-types/src/conversation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/codegen/kigi-sampling-types/src/conversation.rs b/crates/codegen/kigi-sampling-types/src/conversation.rs index 6835f2b..d4f0558 100644 --- a/crates/codegen/kigi-sampling-types/src/conversation.rs +++ b/crates/codegen/kigi-sampling-types/src/conversation.rs @@ -9632,7 +9632,7 @@ mod tests { fn code_interpreter_summary_truncates_multibyte_code_safely() { let item = BackendToolCallItem { kind: BackendToolKind::CodeInterpreter(rs::CodeInterpreterToolCall { - code: Some("统计".repeat(40)), + code: Some("统计".repeat(60)), container_id: "cont_1".to_string(), id: "ci_1".to_string(), outputs: None,