mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 06:40:29 +08:00
fix: failed to set right status in memory (#17472)
As title Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1492,7 +1492,12 @@ func (s *AgentService) buildRunFunc(canvasID string, versionRow *entity.UserCanv
|
||||
if uid, ok := root["user_id"].(string); ok && uid != "" {
|
||||
state.Sys["user_id"] = uid
|
||||
}
|
||||
state.Sys["agent_id"] = canvasID
|
||||
if canvasID != "" {
|
||||
state.Sys["canvas_id"] = canvasID
|
||||
}
|
||||
if sessionID != "" {
|
||||
state.Sys["session_id"] = sessionID
|
||||
}
|
||||
if tid, ok := root["tenant_id"].(string); ok && tid != "" {
|
||||
state.Sys["tenant_id"] = tid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user