Files
cc-web/.planning/2026-10-14-history-memory-fix/task_plan.md

26 lines
1.2 KiB
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.

# 完整历史内存修复
目标:保留完整会话历史,消除完整归档加载、保存和基线的整份复制,增加分块存储、按页读取和安全迁移。
## 阶段
1. 确认归档和分页入口,确定内存有界的实现:complete
2. 实现分块归档、按页读取和旧数据迁移:complete
3. 验证历史完整性、并发保护和内存峰值:complete
4. 完成代码复核并交付验证结果:complete
## 边界
- 保留正文、工具参数和结果,不用截断历史换取内存。
- 不覆盖现有 server.js 未提交改动。
- 测试使用隔离目录,不修改生产归档。
- 重启前必须确认没有其他运行中的对话。
## 已知情况
- 当前完整历史格式见 .trellis/spec/backend/session-history.md。
- 用户要求继续推进,不再停留在审计流程。
- 初始 git 状态:server.js 已修改;10-11-remove-compact-followup 为既有任务。
## 问题记录
- 首次定位 todo-list-csv 技能不存在,采用项目规定的 CSV 与 update_plan 同步。
- Codebase Memory 部分命中位置错位,须用实际文件交叉校验。
- 本轮 Codebase Memory 连接已关闭,改用 FastCtx 精确读文件继续实现。