feat(agent): 云端 Agent - 增加上下文预算、任务事实与终态恢复保障

This commit is contained in:
ddCat committed 2026-09-19 20:43:20 +08:00
1 parent 3bf21d79af
commit b52bc9d5f2
61 files changed
+3512 -309

No files matched your search

@@ -143,7 +143,7 @@ func TestCloudAgentCanvasReadArgumentRepairContinuesRun(t *testing.T) {
t.Fatalf("lost strict schema after checkpoint: %#v", result)
}
properties, _ := schema["properties"].(map[string]any)
if len(properties) != 3 || properties["offset"] == nil || properties["nodeIds"] == nil || properties["storyboardOffset"] == nil {
if len(properties) != 4 || properties["offset"] == nil || properties["nodeIds"] == nil || properties["storyboardOffset"] == nil || properties["connectionOffset"] == nil {
t.Fatalf("wrong repair schema: %#v", properties)
}
} else if result["error"] != nil || result["snapshotHash"] == nil || !strings.Contains(last["content"].(string), "saved content") {