修复: patch_file 小改动自动放行 + tool_result JSON 压缩 + prompt 项目路径

- C-260627: patch_file ≤5 行自动放行,不阻塞 AI 工作流
- tool_result 压缩: JSON 数组截断到 10 条 + _truncated 标记
- system_prompt: 项目清单增加「目录:」路径信息
This commit is contained in:
lxy
2026-06-27 23:59:07 +08:00
parent 6212002270
commit b7b54eb2a6
4 changed files with 38 additions and 2 deletions
+3
View File
@@ -163,6 +163,9 @@ pub(crate) async fn build_system_prompt_with_excluded(
continue;
}
prompt.push_str(&format!("- {} ({}): {}\n", p.name, p.status, p.description));
if let Some(ref dir) = p.path {
prompt.push_str(&format!(" 目录: {}\n", dir));
}
}
// 机制层注明语(中/英):项目已全部列出,降 list_projects 重复调用
prompt.push_str(&projects_listed_note(lang, 20));