INSERT INTO ias_upgrade_logs (
    version,
    released_at,
    title,
    description,
    changes,
    modules
) VALUES (
    '0.2.26',
    '2026-07-08T00:00:00+08:00',
    '修复操作日志预览 UTF-8 截断',
    '修复服务队列记录 LLM 响应和工具结果预览时按字节直接切片导致中文等多字节字符触发 char boundary panic 的问题。',
    '[
        "修复服务队列记录 LLM 响应和工具结果预览时按字节直接切片的问题，避免中文、emoji 等多字节字符刚好落在预览上限时触发 char boundary panic。",
        "操作日志预览现在仍按字节上限控制长度，但会回退到合法 UTF-8 字符边界，保证写入 metadata 前不会破坏字符串。",
        "新增单元测试覆盖中文字符跨越 500 字节边界的预览场景。",
        "数据库无结构变化；已验证 cargo fmt --check 和 cargo test -p ias-service。"
    ]'::jsonb,
    '{
        "ias-common": "0.1.2",
        "ias-ai": "0.1.13",
        "ias-wechat": "0.1.1",
        "ias-context": "0.1.5",
        "ias-http": "0.1.14",
        "ias-mail": "0.1.15",
        "ias-service": "0.1.23",
        "ias-main": "0.2.26"
    }'::jsonb
) ON CONFLICT (version) DO UPDATE SET
    released_at = EXCLUDED.released_at,
    title = EXCLUDED.title,
    description = EXCLUDED.description,
    changes = EXCLUDED.changes,
    modules = EXCLUDED.modules;
