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

Function taskRoleSessionStateReusable

internal/daemon/task_role_runtime.go:551–558  ·  view source on GitHub ↗
(state session.State)

Source from the content-addressed store, hash-verified

549}
550
551func taskRoleSessionStateReusable(state session.State) bool {
552 switch state {
553 case session.StateStarting, session.StateActive:
554 return true
555 default:
556 return false
557 }
558}
559
560func taskRoleSessionName(activation taskRoleActivation) string {
561 base := fmt.Sprintf("task-role:%s:%s", activation.AgentName, firstNonEmpty(activation.Channel, "default"))

Callers 1

taskRoleSessionMatchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected