Fixed go mod issues with new runner handler

This commit is contained in:
Frikky
2026-05-07 13:50:22 +02:00
parent d906861bc8
commit f47147d794
6 changed files with 225 additions and 212 deletions
+4 -3
View File
@@ -4343,7 +4343,8 @@ func runMCPAction(resp http.ResponseWriter, request *http.Request) {
return
}
go shuffle.HandleAiAgentExecutionStart(parentExec, agentNode, false)
callerName := "deployAppShuffleOnprem"
go shuffle.HandleAiAgentExecutionStart(parentExec, agentNode, false, callerName)
resp.WriteHeader(200)
resp.Write([]byte(fmt.Sprintf(`{"success": true, "execution_id": "%s", "authorization": "%s", "mode": "hybrid"}`, parentExec.ExecutionId, parentExec.Authorization)))
@@ -4351,7 +4352,7 @@ func runMCPAction(resp http.ResponseWriter, request *http.Request) {
} else {
//standalone mode
workflowExecution, err := shuffle.PrepareSingleAction(ctx, user, "agent_starter", marshalledAction, false, "")
workflowExecution, err := shuffle.PrepareSingleAction(ctx, request, user, "agent_starter", marshalledAction, false, "")
if err != nil {
log.Printf("[ERROR] Failed to prepare standalone agent execution: %s", err)
resp.WriteHeader(500)
@@ -4367,7 +4368,7 @@ func runMCPAction(resp http.ResponseWriter, request *http.Request) {
}
// For non-agent calls (MCP or other apps): continue with existing flow
workflowExecution, err := shuffle.PrepareSingleAction(ctx, user, "agent", marshalledAction, false, "")
workflowExecution, err := shuffle.PrepareSingleAction(ctx, request, user, "agent", marshalledAction, false, "")
if fileId == "agent_starter" {
log.Printf("[INFO] Returning early for agent_starter single action execution: %s", workflowExecution.ExecutionId)
resp.WriteHeader(200)