Files
DevFlow/docs/02-架构设计/已编号方案/消息级溯源P2-切读方案-2026-06-28.md
绝尘 c022e2d4d8 修复: 消息溯源P2切读确认完成 + 走查报告高优项
- 更新 P2 切读方案文档(确认批次B已上线)
- ㉑ query LIKE 通配符转义(project/idea/task/knowledge 4 处)
- ⑱ dag.rs deep_merge null 覆盖全局配置
- ⑲ dag.rs _ 通配 match 展开显式变体
- ⑩ INDEX.md 补漏 10 个文档索引
- ⑫ ARCHITECTURE.md 删除与新文档逐字重复
- ㉒ coordinator.rs 加 #[deprecated] 编译守卫
- ㉛ AiChat.vue 空值传播加 console.warn
2026-06-28 05:05:30 +08:00

20 lines
757 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 消息级溯源 P2 切读方案
> 决策2026-06-28 — 一次性切读 + 脚本迁移历史数据
## 现状2026-06-28 代码核查)
**P2 切读已完成**。上一阶段「批次 B」已经实现了读写路径切换
### ✅ 读路径
`ai_conversation_switch` 已优先从 `ai_messages` 表加载(`list_by_conversation`
空时 fallback 旧 `messages` JSON 列。见 `conversation.rs:257-282`
### ✅ 写路径
`save_conversation` 已走 `AiMessageRepo.replace_conversation``DELETE + INSERT` 事务原子),
旧 messages JSON 列保留不写作备份。见 `conversation.rs``save_conversation` 实现。
### 剩余工作
- `ai_conversations.messages` 列标记废弃(暂不删列)
- 后续 V22 可选删除该列