Files
buzz/crates/buzz-sdk
Jem Mawson df46b827b1 fix(cli): attach custom emoji tags when editing a message (#9694)
**ELI5:** When you edit a message from the command line and add a custom
emoji such as `👋`, it now shows up as the emoji instead of the
literal text, just as it already does when you send a new message.

## Summary
`buzz messages edit` published kind 40003 edits without NIP-30 `emoji`
tags, so a custom-emoji shortcode introduced by an edit rendered as
plain text. The desktop app already prefers emoji tags carried on an
edit, and the relay already validates them on edits, so the gap was only
in the CLI.

- `buzz-sdk`: new `build_edit_with_tags`, which adds emoji tags
alongside media tags. `build_edit_with_media` delegates to it.
- `buzz-cli`: `emoji_tags_for_content` is shared by `messages send`
(kind 9) and both `messages edit` paths. As on send, a palette fetch
failure warns and continues without emoji tags.

### Related issue
None found.

### Testing
- New unit test `edit_attaches_emoji_tags` (buzz-sdk) and CLI test
`command_attaches_emoji_tags_for_known_shortcodes` (kinds 9 and 7, known
and unknown shortcodes).
- Full pre-push suite passed (`rust-tests`, `desktop-tauri-checks`).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Jeremy Mawson <jmawson@squareup.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:13:12 +10:00
..