Skip to content

Commit be1e522

Browse files
Copilotpikann
andauthored
fix: populate UserID in dispatch.go and remove omitempty from actor_id
Agent-Logs-Url: https://github.com/Paca-AI/plugin-sdk-go/sessions/244e47a5-a8a9-4aff-bedf-a6e4d5fcab1b Co-authored-by: pikann <41873019+pikann@users.noreply.github.com>
1 parent c2131f2 commit be1e522

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

dispatch.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func (d *dispatcher) handleRequest(payload []byte) []byte {
4545
Query map[string]string `json:"query"`
4646
ProjectID string `json:"project_id"`
4747
CallerID string `json:"caller_id"`
48+
UserID string `json:"user_id"`
4849
CallerRole string `json:"caller_role"`
4950
Headers map[string]string `json:"headers"`
5051
Body []byte `json:"body"`
@@ -70,6 +71,7 @@ func (d *dispatcher) handleRequest(payload []byte) []byte {
7071
Body: hr.Body,
7172
Caller: CallerIdentity{
7273
CallerID: hr.CallerID,
74+
UserID: hr.UserID,
7375
CallerRole: hr.CallerRole,
7476
ProjectID: hr.ProjectID,
7577
},

wasm_backends.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func EmitEvent(topic string, payload any) {
185185
type activityInput struct {
186186
TaskID string `json:"task_id"`
187187
ProjectID string `json:"project_id"`
188-
ActorID string `json:"actor_id,omitempty"`
188+
ActorID string `json:"actor_id"`
189189
ActivityType string `json:"activity_type"`
190190
Content any `json:"content"`
191191
}

0 commit comments

Comments
 (0)