File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6764,6 +6764,21 @@ SINGUL ACTIONS:
67646764 previousAnswers := ""
67656765 relevantDecisions := []AgentDecision {}
67666766
6767+ // Check for existing RUNNING ask decisions - if found, return existing state without creating new decisions
6768+ hasRunningAsk := false
6769+ for _ , mappedDecision := range mappedResult .Decisions {
6770+ if mappedDecision .RunDetails .Status == "RUNNING" && (mappedDecision .Action == "ask" || mappedDecision .Action == "question" ) {
6771+ log .Printf ("[DEBUG][%s] Found existing RUNNING ask decision at index %d - returning existing state" , execution .ExecutionId , mappedDecision .I )
6772+ hasRunningAsk = true
6773+ break
6774+ }
6775+ }
6776+
6777+ // If there's a running ask decision, return the existing agent output without modification
6778+ if hasRunningAsk {
6779+ return startNode , nil
6780+ }
6781+
67676782 hasFailure := false
67686783 for _ , mappedDecision := range mappedResult .Decisions {
67696784 if mappedDecision .RunDetails .Status == "FAILURE" {
You can’t perform that action at this time.
0 commit comments