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

Function taskRunHookClaimerSessionID

internal/task/manager.go:2446–2454  ·  view source on GitHub ↗
(run Run, actor ActorContext)

Source from the content-addressed store, hash-verified

2444}
2445
2446func taskRunHookClaimerSessionID(run Run, actor ActorContext) string {
2447 if strings.TrimSpace(run.SessionID) != "" {
2448 return strings.TrimSpace(run.SessionID)
2449 }
2450 if actor.Actor.Kind.Normalize() == ActorKindAgentSession {
2451 return strings.TrimSpace(actor.Actor.Ref)
2452 }
2453 return ""
2454}
2455
2456func taskPriorityMin(priority Priority) int {
2457 switch priority.Normalize() {

Callers 1

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected