新增: skills 视图与标题编辑测试(未落库功能批量入库)

This commit is contained in:
lxy
2026-08-23 18:25:02 +08:00
parent 95f349bcd7
commit d54d0c4c63
12 changed files with 985 additions and 37 deletions
+4 -1
View File
@@ -1011,7 +1011,10 @@ func generateAISummary(filePath string) (string, []string, []string) {
要求:summary 30字以内中文标题,突出具体内容避免泛化;completed 已完成工作(每项≤30字);pending 未完成/待办(每项≤30字)。只输出JSON。` + "\n\n" + messages
cmd := exec.CommandContext(ctx, "claude", "-p", prompt)
// 用 stdin 传 prompt:Windows 上 claude -p 把命令行参数在首个换行处截断,
// 导致只收到"分析以下Claude Code对话"前缀、消息内容丢失(历史无意义标题的根因)。
cmd := exec.CommandContext(ctx, "claude", "-p", "--input-format", "text")
cmd.Stdin = strings.NewReader(prompt)
output, err := cmd.Output()