Skip to content

Fix mobile DM recipient tags - #5173

Open
Tiago-Sonar wants to merge 2 commits into
block:mainfrom
Tiago-Sonar:fix/mobile-dm-recipient-tags
Open

Fix mobile DM recipient tags#5173
Tiago-Sonar wants to merge 2 commits into
block:mainfrom
Tiago-Sonar:fix/mobile-dm-recipient-tags

Conversation

@Tiago-Sonar

Copy link
Copy Markdown

Summary

  • add all other channel participants as p tags on mobile DM messages
  • apply the same recipient behavior to DM thread replies
  • resolve channel type inside the shared send service and fail closed when metadata is unavailable
  • preserve explicit-mention-only behavior for non-DM streams

Why

Mobile DM messages without an explicit @mention were published without a recipient p tag. Recipient-gated agent harnesses could therefore ignore a visible message, making managed agents such as Donna appear not to answer.

Validation

  • ./bin/just ci
  • full mobile suite: 1,253 tests passed
  • independent diff review completed; its thread-loading race finding is addressed by the second commit

Origin

Buzz channel: 4c0769da-da97-4e9d-bf12-152ddbaec0aa
Thread root: 22f9b299f0da00ce02648abdf49ff7a221cad8e68599565737817d3ed087bc1b

Co-authored-by: TMC <tiago@sonargtm.com>
Signed-off-by: TMC <tiago@sonargtm.com>
Fail closed when channel metadata is unavailable so thread replies cannot silently omit DM participant tags.

Co-authored-by: TMC <tiago@sonargtm.com>
Signed-off-by: TMC <tiago@sonargtm.com>
@Tiago-Sonar
Tiago-Sonar requested a review from a team as a code owner August 7, 2026 10:52
@Tiago-Sonar

Copy link
Copy Markdown
Author

@block/buzz-oss-team Review requested. This critical reliability fix is mergeable; DCO, Semgrep, and zizmor are green, and the PR body records the full local validation and independent review.

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