fix(agent): 画布助手 - 避免未支持节点阻断整张画布

This commit is contained in:
ddCat committed 2026-09-15 09:27:00 +08:00
1 parent 18d4bcbca6
commit 40aca20f4d
5 files changed
+63 -4

No files matched your search

@@ -86,7 +86,12 @@ func cloudAgentCanvasState(repo *repository.Repository, userID string, doc map[s
}
capability, known := cloudAgentNodeCapabilityForType(stringValue(node["type"]))
if !known {
return nil, BadAuthRequest("画布包含当前 Agent 不支持的节点类型")
// Read visibility is not permission to mutate or use a node as a media reference.
item["agentSupported"] = false
item["agentUnsupportedReason"] = "仅展示基础信息;当前 Agent 不支持操作此类型节点"
nodes = append(nodes, item)
included[id] = true
continue
}
fields := capability.SummaryFields
if len(ids) > 0 {