#11898: Fix for issue #11895
channel: nostr
stale
Cluster:
Signal Plugin Enhancements
Fixing Nostr Channel Message Sending Issue
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the Nostr channel plugin to add an explicit `outbound.sendMedia` handler that rejects media sends for Nostr DMs (which are text-only under NIP-04).
The change lives in `extensions/nostr/src/channel.ts` alongside the existing `sendText` implementation in the plugin’s `outbound` section.
<h3>Confidence Score: 4/5</h3>
- Mostly safe to merge, but the new media-send behavior may cause avoidable runtime errors if invoked.
- Change is small and localized, but adding a `sendMedia` that always throws can crash callers if they invoke it without checking `capabilities.media` (or if interface expectations changed).
- extensions/nostr/src/channel.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#7353: fix: prevent silent message drops after config.patch restart
by 18-RAJAT · 2026-02-02
80.2%
#4878: fix: string/type handling and API fixes (#4537, #4380, #4373, #4547...
by lailoo · 2026-01-30
79.9%
#4562: fix(nostr): use dispatchReplyFromConfig for inbound messages
by Abhijrathod · 2026-01-30
79.5%
#15853: feat: add option to suppress media placeholder text
by MisterGuy420 · 2026-02-14
78.2%
#7562: fix: nostr plugin filter double-wrapping in subscribeMany
by kaigritun · 2026-02-03
75.6%
#13881: fix: Address Greptile feedback - test isolation and channel resolution
by trevorgordon981 · 2026-02-11
75.2%
#20294: fix(message): thread mediaLocalRoots through channel plugin dispatch
by odrobnik · 2026-02-18
75.1%
#14794: fix: parse inline MEDIA: tokens in agent replies
by explainanalyze · 2026-02-12
74.4%
#14795: fix: skip disabled channel plugins in cross-context messaging checks
by explainanalyze · 2026-02-12
74.3%
#7261: fix(telegram): preserve DM topic thread id for outbound media
by ViffyGwaanl · 2026-02-02
74.2%