Files
Genarrative/apps/ai-game-creator-shell
k88936 97c3fc83c1 非字符串入参的回显截断到 120 字符,不再把整个对象原样带进诊断
- arguments::optional_text 里的 not_text 改为传截断后的序列化值:类型错只需要看出「传了什么」
- got 同时出现在 to_user_msg 与序列化 error 里,限长后工具结果与诊断 sidecar 都不会被超大数组/对象灌爆
- 复用 runtime_state::truncate_agent_runtime_text,不新增第二套截断实现
- 测试补一条:超大数组回显必须带截断标记且长度可控

验证:cargo test --bin genarrative-ai-game-creator-shell -- non_text_field_values 通过;cargo fmt --check 通过
2026-10-01 16:51:50 +08:00
..
2026-10-01 15:29:23 +08:00
2026-10-01 15:29:23 +08:00
2026-08-17 14:32:13 +08:00