@@ -366,7 +366,7 @@ func TestAgentRun_Get(t *testing.T) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
organization { id }
|
organization { id }
|
||||||
permission(action: "agentrun:agent-run:get")
|
permission(action: "agent:run:get")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"maps"
|
||||||
|
|
||||||
"go.probo.inc/probo/pkg/llm"
|
"go.probo.inc/probo/pkg/llm"
|
||||||
)
|
)
|
||||||
@@ -79,9 +80,7 @@ func MergeApprovalDecisions(
|
|||||||
if cp.ApprovalInput == nil {
|
if cp.ApprovalInput == nil {
|
||||||
cp.ApprovalInput = make(map[string]ApprovalResult, len(decisions))
|
cp.ApprovalInput = make(map[string]ApprovalResult, len(decisions))
|
||||||
}
|
}
|
||||||
for id, decision := range decisions {
|
maps.Copy(cp.ApprovalInput, decisions)
|
||||||
cp.ApprovalInput[id] = decision
|
|
||||||
}
|
|
||||||
|
|
||||||
data, err := json.Marshal(&cp)
|
data, err := json.Marshal(&cp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user