Skip to content

Ack delivery_unconfirmed as telemetry and label peer-agent senders - #2

Merged
dimavrem22 merged 1 commit into
mainfrom
delivery-unconfirmed-and-sender-identity
Jul 13, 2026
Merged

Ack delivery_unconfirmed as telemetry and label peer-agent senders#2
dimavrem22 merged 1 commit into
mainfrom
delivery-unconfirmed-and-sender-identity

Conversation

@dimavrem22

Copy link
Copy Markdown
Contributor

Ports two merged fixes from the sibling plugins.

Don't wake the agent on text.delivery_unconfirmed

Ports inkbox-ai/claude-code-plugin#36. The event is carrier uncertainty — the message usually landed — so it no longer routes into the delivery-failure capture that nudges the agent to retry. It is now acked and logged, and the gateway stays subscribed to it. text.delivery_failed, imessage.delivery_failed, and mail bounce/fail behavior are unchanged.

Label a contactless sender with their resolved agent identity

Ports inkbox-ai/openclaw-plugin#33. When a 1:1 sender has no address-book contact but the webhook resolved exactly one agent_identities entry, the frame tag and reaction labels now carry that identity (contact_agent_identity_id, quoted contact_agent_handle, quoted contact_name) instead of contact=unknown_in_inkbox. A contact match always wins; zero or several identities keep the unknown fallback; mail trusts only the from-bucket entry whose address matches the normalized sender; phone-channel groups keep their existing framing. Handle and display name are remote-controlled, so both are JSON-quoted in the tag.

text.delivery_unconfirmed is carrier uncertainty, not a failure: route it
out of the delivery-failure capture so the agent is never woken to resend
a message that usually landed. Real failures are untouched.

Inbound turns from a sender with no contact match but exactly one
backend-resolved agent identity now carry that identity in the frame tag
(id, quoted handle, quoted display name) instead of unknown_in_inkbox.
Contacts always win; zero or many identities fall back to unknown; mail
trusts only the from-bucket entry matching the sender's address.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dimavrem22
dimavrem22 marked this pull request as ready for review July 13, 2026 01:29
@dimavrem22
dimavrem22 merged commit 14eeb2f into main Jul 13, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant