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

Method MarkTaskRead

internal/task/manager.go:971–977  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

969// MarkTaskRead persists the current actor-scoped triage state as read for the
970// task's latest known activity snapshot.
971func (m *Service) MarkTaskRead(ctx context.Context, id string, actor ActorContext) (TriageState, error) {
972 return m.mutateTaskTriage(ctx, id, actor, func(state *TriageState, latestActivity time.Time) {
973 state.Read = true
974 state.Dismissed = false
975 state.LastSeenActivityAt = latestActivity
976 })
977}
978
979// ArchiveTask persists the current actor-scoped triage state as archived for
980// the task's latest known activity snapshot.

Callers

nothing calls this directly

Calls 1

mutateTaskTriageMethod · 0.95

Tested by

no test coverage detected