绝尘
9189877a59
修复: B-260626-01 首条 user 协议合规(sanitize 兜底 + ensure_leading_user)
- context.rs: 兜底全量也过 sanitize(对齐分支1/3,防主 loop 唯一 sanitize 漏洞——大体量 tool_result 致超预算且保护区满时,裸返 all_messages_clone 不过滤 truncated/中毒三元组/首条非法直送 provider)
- anthropic_compat.rs + openai_compat.rs: ensure_leading_user 补 user 占位(Anthropic/OpenAI 协议要求首条非 assistant/tool;上游绕过 sanitize 的调用方——标题生成/知识注入/工作流 AI 节点——可能传入首条 assistant 序列,补占位保留上下文,tool_use/tool_result 配对完整无 orphan,远优于砍丢历史)
2026-06-27 01:31:00 +08:00
..
2026-06-27 01:31:00 +08:00
2026-06-19 19:24:02 +08:00
2026-06-24 00:27:09 +08:00
2026-06-26 23:53:51 +08:00
2026-06-26 22:50:48 +08:00
2026-06-26 22:50:48 +08:00
2026-06-22 01:45:43 +08:00
2026-06-24 00:19:54 +08:00
2026-06-27 00:49:09 +08:00
2026-06-22 03:11:46 +08:00
2026-06-21 20:51:26 +08:00
2026-06-22 01:08:26 +08:00