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

Function taskRoleSessionName

internal/daemon/task_role_runtime.go:560–567  ·  view source on GitHub ↗
(activation taskRoleActivation)

Source from the content-addressed store, hash-verified

558}
559
560func taskRoleSessionName(activation taskRoleActivation) string {
561 base := fmt.Sprintf("task-role:%s:%s", activation.AgentName, firstNonEmpty(activation.Channel, "default"))
562 fingerprint := taskRoleProfileFingerprint(activation)
563 if fingerprint == "" {
564 return base
565 }
566 return base + ":" + fingerprint
567}
568
569func taskRoleProfileFingerprint(activation taskRoleActivation) string {
570 if activation.Profile == nil {

Callers 2

taskRoleCreateOptsFunction · 0.85
taskRoleSessionMatchesFunction · 0.85

Calls 2

firstNonEmptyFunction · 0.70

Tested by

no test coverage detected