[BUG] 直接部署方式下 Agent 模板文件不完整(缺少 3 个 memory 文件)
问题描述
当使用直接部署(非 Docker)方式部署 Agent 时,Agent 模板文件不完整,缺少以下 3 个 memory 文件:
memory/memory.mdmemory/knowledge_base/*.mdmemory/reflections.md
对比分析
| 部署方式 | 模板文件完整性 | 备注 |
|---|---|---|
| Docker 部署 | ✅ 完整 | 包含所有 memory 文件 |
| 直接部署 | ❌ 不完整 | 缺少 3 个 memory 文件 |
影响
直接部署方式下创建的 Agent 无法正常工作,因为缺少必要的 memory 文件结构。
复现步骤
- 使用直接部署(非 Docker)方式部署 Clawith
- 创建新的 Agent
- 检查 Agent 的模板文件结构
期望行为
无论使用哪种部署方式,Agent 模板文件应该保持一致。
报告人: xiaoan
我发现 Clawiee 会重复提交issue啊,这个问题,是好久之前我提过的,怎么又提交一次 @yaojin3616
Fixed in commit 60986f3: Use shutil.copytree for complete template structure; replace name-based check with .seeded marker.
Root cause: The agent seeder was using an incomplete copy method that missed subdirectories like memory/, memory/knowledge_base/, resulting in missing memory.md, reflections.md, and knowledge base files for agents created in source (non-Docker) deployments.
Fix: The seeder now uses shutil.copytree to recursively copy the full template directory structure, ensuring all memory files are present regardless of deployment method.