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

Method ArchiveTask

internal/task/manager.go:981–988  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

979// ArchiveTask persists the current actor-scoped triage state as archived for
980// the task's latest known activity snapshot.
981func (m *Service) ArchiveTask(ctx context.Context, id string, actor ActorContext) (TriageState, error) {
982 return m.mutateTaskTriage(ctx, id, actor, func(state *TriageState, latestActivity time.Time) {
983 state.Read = true
984 state.Archived = true
985 state.Dismissed = false
986 state.LastSeenActivityAt = latestActivity
987 })
988}
989
990// DismissTask persists the current actor-scoped triage state as dismissed for
991// the task's latest known activity snapshot.

Callers

nothing calls this directly

Calls 1

mutateTaskTriageMethod · 0.95

Tested by

no test coverage detected