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

Function taskSessionAgentName

internal/daemon/task_runtime.go:855–864  ·  view source on GitHub ↗
(taskRecord taskpkg.Task)

Source from the content-addressed store, hash-verified

853}
854
855func taskSessionAgentName(taskRecord taskpkg.Task) string {
856 if taskRecord.Owner == nil || taskRecord.Owner.IsZero() {
857 return ""
858 }
859 owner := *taskRecord.Owner
860 if owner.Kind.Normalize() != taskpkg.OwnerKindPool {
861 return ""
862 }
863 return strings.TrimSpace(owner.Ref)
864}
865
866func taskRunSessionChannel(run taskpkg.Run) string {
867 if channel := strings.TrimSpace(run.CoordinationChannelID); channel != "" {

Callers 1

StartTaskSessionMethod · 0.85

Calls 2

IsZeroMethod · 0.45
NormalizeMethod · 0.45

Tested by

no test coverage detected