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

Function taskSessionRuntimeState

internal/daemon/task_runtime.go:704–714  ·  view source on GitHub ↗
(
	ctx context.Context,
	sessions taskBridgeSessionManager,
	sessionID string,
)

Source from the content-addressed store, hash-verified

702}
703
704func taskSessionRuntimeState(
705 ctx context.Context,
706 sessions taskBridgeSessionManager,
707 sessionID string,
708) (bool, string, error) {
709 evidence, err := inspectTaskSessionRecovery(ctx, sessions, sessionID)
710 if err != nil {
711 return false, "", err
712 }
713 return evidence.live, evidence.state, nil
714}
715
716func isTaskSessionStateLive(state session.State) bool {
717 switch state {

Callers 2

TestTaskRuntimeHelpersFunction · 0.85

Calls 1

Tested by 2

TestTaskRuntimeHelpersFunction · 0.68