MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / selfSendApprovalDelivery

Method selfSendApprovalDelivery

internal/agent/selfsend.go:125–131  ·  view source on GitHub ↗

selfSendApprovalDelivery is the HITL-gated counterpart of performSelfSend: it writes ONLY the inbound row (via loopback.DeliverInbound) and returns an identity.SendResult shaped for ApproveAndSend's send callback. The pre-existing held outbound row is finalized to status=sent by ApproveAndSend itsel

(
	ctx context.Context,
	agent *identity.AgentIdentity,
	req outbound.SendRequest,
)

Source from the content-addressed store, hash-verified

123// Operator-visible symptom: a "self-message" inbox row with no matching
124// status=sent outbound row.
125func (a *API) selfSendApprovalDelivery(
126 ctx context.Context,
127 agent *identity.AgentIdentity,
128 req outbound.SendRequest,
129) (identity.SendResult, error) {
130 return loopback.DeliverInbound(ctx, a.store, agent, req, a.fromDomain)
131}

Callers 2

magicApproveMethod · 0.95
ApprovePendingCoreMethod · 0.95

Calls 1

DeliverInboundFunction · 0.92

Tested by

no test coverage detected