feat(agent): Agent 工作台 - 计划插话记忆、统一模型选择器并修复摘要与视频入库

将计划清单、运行中插话和个人记忆接入云端 Agent;全站模型选择器统一为左右二级菜单。画布摘要按预算截断不再整轮拒绝,首页视频未知宽高可入库。README 补充贡献者 morrow。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ddCatandCursor committed 2026-09-17 20:21:25 +08:00
1 parent b6bae4f957
commit 6892732b06
80 files changed
+7361 -179

No files matched your search

+7 -1
View File
@@ -215,7 +215,10 @@ func claudeAgentBody(request map[string]interface{}) map[string]interface{} {
}
body["messages"] = claudeMessages
if len(system) > 0 {
body["system"] = strings.Join(system, "\n\n")
body["system"] = []interface{}{map[string]interface{}{
"type": "text", "text": strings.Join(system, "\n\n"),
"cache_control": map[string]interface{}{"type": "ephemeral"},
}}
}
}
if tools, ok := request["tools"].([]interface{}); ok && len(tools) > 0 {
@@ -231,6 +234,9 @@ func claudeAgentBody(request map[string]interface{}) map[string]interface{} {
})
}
if len(claudeTools) > 0 {
if last, ok := claudeTools[len(claudeTools)-1].(map[string]interface{}); ok {
last["cache_control"] = map[string]interface{}{"type": "ephemeral"}
}
body["tools"] = claudeTools
}
}