@@ -212,10 +212,6 @@ export async function runSendPipeline(deps: {
212212 } ;
213213 checkEligibilityFn : ( ) => string | null ;
214214 channelId : string ;
215- /** Optional avatar URL emitted as the NIP-92 `thumb` field on the snapshot
216- * attachment. Decorative — lets the recipient card show the agent's avatar
217- * without trusting sender-supplied identity. */
218- thumbUrl ?: string ;
219215} ) : Promise < boolean > {
220216 const {
221217 encodeFn,
@@ -225,7 +221,6 @@ export async function runSendPipeline(deps: {
225221 buildMessageFn,
226222 checkEligibilityFn,
227223 channelId,
228- thumbUrl,
229224 } = deps ;
230225
231226 // ── Eligibility checkpoint 1: before encode ───────────────────────────────
@@ -284,13 +279,13 @@ export async function runSendPipeline(deps: {
284279 }
285280
286281 // Preserve the original filename so `buildImetaTags` emits a `filename`
287- // field and the recipient's FileCard renders the correct label.
288- // Also carry the agent's avatar URL as the NIP-92 `thumb` field when
289- // the caller supplied one — decorative hint for the recipient card.
282+ // field and the recipient's FileCard renders the correct label. Snapshot
283+ // sends never emit `thumb`: NIP-92 requires it to be this upload's local
284+ // thumbnail sidecar, which an agent avatar is not.
285+ const { thumb : _thumb , ...descriptorWithoutThumb } = descriptor ;
290286 const descriptorWithFilename : BlobDescriptor = {
291- ...descriptor ,
287+ ...descriptorWithoutThumb ,
292288 filename : fileName ,
293- ...( thumbUrl ? { thumb : thumbUrl } : { } ) ,
294289 } ;
295290
296291 // ── Build message content + NIP-92 imeta tags ─────────────────────────────
@@ -361,14 +356,10 @@ export type UseSnapshotSendControllerResult = {
361356 * false and sets error state if blocked, ineligible, or if any step fails.
362357 * Never throws.
363358 *
364- * @param thumbUrl Optional avatar URL emitted as the NIP-92 `thumb` imeta
365- * field on the snapshot attachment — decorative, lets the recipient card
366- * show the agent's avatar without any identity assertion.
367359 */
368360 beginSend : (
369361 encodeFn : ( ) => Promise < { fileBytes : number [ ] ; fileName : string } > ,
370362 channelId : string ,
371- thumbUrl ?: string ,
372363 ) => Promise < boolean > ;
373364 /** Set state to error with a message (for pre-send gate failures). */
374365 setErrorState : ( message : string ) => void ;
@@ -461,12 +452,10 @@ export function useSnapshotSendController(): UseSnapshotSendControllerResult {
461452 async function beginSend (
462453 encodeFn : ( ) => Promise < { fileBytes : number [ ] ; fileName : string } > ,
463454 channelId : string ,
464- thumbUrl ?: string ,
465455 ) : Promise < boolean > {
466456 return runGuardedSend ( guardRef . current , {
467457 encodeFn,
468458 channelId,
469- thumbUrl,
470459 // Eligibility is checked by reading directly from the React Query cache
471460 // and the timeout external store — not from rendered React state.
472461 checkEligibilityFn : ( ) => checkSendEligibility ( queryClient , channelId ) ,
0 commit comments