MCPcopy Create free account
hub / github.com/compozy/agh / taskSessionName

Function taskSessionName

internal/daemon/task_runtime.go:840–853  ·  view source on GitHub ↗
(spec *taskpkg.StartTaskSession)

Source from the content-addressed store, hash-verified

838}
839
840func taskSessionName(spec *taskpkg.StartTaskSession) string {
841 if spec == nil {
842 return "task:#0"
843 }
844
845 base := strings.TrimSpace(spec.Task.Title)
846 if base == "" {
847 base = strings.TrimSpace(spec.Task.Identifier)
848 }
849 if base == "" {
850 base = strings.TrimSpace(spec.Run.ID)
851 }
852 return fmt.Sprintf("task:%s#%d", base, spec.Run.Attempt)
853}
854
855func taskSessionAgentName(taskRecord taskpkg.Task) string {
856 if taskRecord.Owner == nil || taskRecord.Owner.IsZero() {

Callers 2

TestTaskRuntimeHelpersFunction · 0.85
StartTaskSessionMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestTaskRuntimeHelpersFunction · 0.68