RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix(agent): prevent checkpoint crashes and propagate component errors (#21854)
Sbaaoui Idriss63ed0eb46da1
diff --git a/internal/agent/canvas/node_body.go b/internal/agent/canvas/node_body.goindex 19adac2c89..f0640f27ec 100644--- a/internal/agent/canvas/node_body.go+++ b/internal/agent/canvas/node_body.go@@ -218,7 +218,7 @@ func withExceptionHandler(cpnID string, params map[string]any, body nodeBodyFn)return out, nil}}- return out, invokeErr+ return out, err}}diff --git a/internal/agent/component/render.go b/internal/agent/component/render.goindex 0b9094ac3e..ab1f5f175d 100644--- a/internal/agent/component/render.go+++ b/internal/agent/component/render.go@@ -44,6 +44,8 @@ import ("html""regexp""strings"++ "github.com/cloudwego/eino/compose")// OutputFormat is the value type of the `output_format` field on@@ -74,6 +76,10 @@ type DownloadInfo struct {PreviewURL string `json:"preview_url,omitempty"`}+func init() {+ _ = compose.RegisterSerializableType[DownloadInfo]("component.DownloadInfo")+}+// RenderRequest is the renderer input. Text is the resolved// message body; Downloads is the list of extracted attachment// descriptors. The renderer is pure — the caller decides where