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

+12 -1
View File
@@ -461,9 +461,17 @@ func TestClaudeAgentBodyMapsOpenAIStyleTools(t *testing.T) {
}}},
"tool_choice": "required",
})
if body["system"] != "You are concise." || body["max_tokens"] != 4096 {
systemBlocks, _ := body["system"].([]interface{})
if len(systemBlocks) != 1 || body["max_tokens"] != 4096 {
t.Fatalf("body = %#v", body)
}
system, _ := systemBlocks[0].(map[string]interface{})
if system["text"] != "You are concise." {
t.Fatalf("system = %#v", system)
}
if cache, _ := system["cache_control"].(map[string]interface{}); cache["type"] != "ephemeral" {
t.Fatalf("system cache_control = %#v", system["cache_control"])
}
messages, _ := body["messages"].([]interface{})
if len(messages) != 3 {
t.Fatalf("messages = %#v", messages)
@@ -473,6 +481,9 @@ func TestClaudeAgentBodyMapsOpenAIStyleTools(t *testing.T) {
if tool["name"] != "canvas_get_state" || body["tool_choice"].(map[string]interface{})["type"] != "any" {
t.Fatalf("tools/choice = %#v / %#v", body["tools"], body["tool_choice"])
}
if cache, _ := tool["cache_control"].(map[string]interface{}); cache["type"] != "ephemeral" {
t.Fatalf("tool cache_control = %#v", tool["cache_control"])
}
}
func TestCanonicalAgentBodiesPreserveAssistantToolCalls(t *testing.T) {