fix: 归档提示词矛盾且缺少操作指引,rename 冲突报错不明确
This commit is contained in:
@@ -152,9 +152,13 @@ export async function assembleArchivePrompt(
|
||||
const incompleteTasks = tasks.filter((t) => !t.checked);
|
||||
if (incompleteTasks.length > 0) {
|
||||
parts.push("## ⚠️ 警告:存在未完成的任务\n");
|
||||
parts.push(`请先读取 ${taskPath} 检查是否有未完成的任务。`);
|
||||
parts.push("如有未完成任务,询问用户是否确认在任务未全部完成的情况下归档。");
|
||||
parts.push("如用户确认,则继续归档;否则中止并返回构建阶段。");
|
||||
parts.push("以下任务尚未完成:");
|
||||
for (const t of incompleteTasks) {
|
||||
parts.push(`- [ ] ${t.text}`);
|
||||
}
|
||||
parts.push("");
|
||||
parts.push("询问用户是否确认在任务未全部完成的情况下归档。");
|
||||
parts.push("如用户确认,则继续执行归档操作;否则中止并返回构建阶段。");
|
||||
parts.push("");
|
||||
}
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user