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

Method DismissTask

internal/task/manager.go:992–998  ·  view source on GitHub ↗

DismissTask persists the current actor-scoped triage state as dismissed for the task's latest known activity snapshot.

(ctx context.Context, id string, actor ActorContext)

Source from the content-addressed store, hash-verified

990// DismissTask persists the current actor-scoped triage state as dismissed for
991// the task's latest known activity snapshot.
992func (m *Service) DismissTask(ctx context.Context, id string, actor ActorContext) (TriageState, error) {
993 return m.mutateTaskTriage(ctx, id, actor, func(state *TriageState, latestActivity time.Time) {
994 state.Read = true
995 state.Dismissed = true
996 state.LastSeenActivityAt = latestActivity
997 })
998}
999
1000func (m *Service) mutateTaskTriage(
1001 ctx context.Context,

Callers

nothing calls this directly

Calls 1

mutateTaskTriageMethod · 0.95

Tested by

no test coverage detected