Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/types/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ type TaskAssignmentMessage struct {
EnvVars map[string]string `json:"env_vars,omitempty"`
// AdditionalSidecars is a list of extra sidecar images to mount into the task container.
AdditionalSidecars []SidecarMount `json:"additional_sidecars,omitempty"`
// ConversationID is the UUID of an existing AI conversation to continue.
ConversationID string `json:"conversation_id,omitempty"`
}

// TaskClaimedMessage is sent from worker to server after successfully claiming a task
Expand Down
3 changes: 3 additions & 0 deletions internal/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ func (w *Worker) prepareTaskParams(assignment *types.TaskAssignmentMessage) *Tas
"--server-root-url",
w.config.ServerRootURL,
}
if assignment.ConversationID != "" {
baseArgs = append(baseArgs, "--conversation", assignment.ConversationID)
}
baseArgs = common.AugmentArgsForTask(task, baseArgs, common.TaskAugmentOptions{
IdleOnComplete: w.config.IdleOnComplete,
})
Expand Down
Loading