@@ -12,8 +12,6 @@ import { buildInboundMediaNoteProjection } from "../media-note.js";
1212import type { MsgContext , TemplateContext } from "../templating.js" ;
1313import { appendChannelPromptContext } from "./channel-prompt-context.js" ;
1414
15- const REPLY_MEDIA_HINT =
16- "To send an image back, use the message tool with structured media fields such as media, mediaUrl, path, or filePath. Keep caption in the text body." ;
1715const ROOM_EVENT_PROMPT = "[OpenClaw room event]" ;
1816const RESUMABLE_ROOM_CONTEXT_OMITTED_PREFIXES = [
1917 "Conversation context (chronological, selected for current message):" ,
@@ -34,7 +32,6 @@ function buildReplyPromptBodies(params: {
3432 media ?: readonly MediaFact [ ] ;
3533} ) : {
3634 mediaNote ?: string ;
37- mediaReplyHint ?: string ;
3835 media ?: MediaFact [ ] ;
3936 prefixedCommandBody : string ;
4037 queuedBody : string ;
@@ -56,12 +53,11 @@ function buildReplyPromptBodies(params: {
5653 const generatedMedia = buildInboundMediaNoteProjection ( params . ctx ) ;
5754 const mediaNote = generatedMedia . text ;
5855 const media = [ ...generatedMedia . media , ...normalizeMediaFacts ( params . media ) ] ;
59- const mediaReplyHint = mediaNote ? REPLY_MEDIA_HINT : undefined ;
6056 const queuedBodyRaw = mediaNote
61- ? [ mediaNote , mediaReplyHint , queueBodyBase ] . filter ( Boolean ) . join ( "\n" ) . trim ( )
57+ ? [ mediaNote , queueBodyBase ] . filter ( Boolean ) . join ( "\n" ) . trim ( )
6258 : queueBodyBase ;
6359 const prefixedCommandBodyRaw = mediaNote
64- ? [ mediaNote , mediaReplyHint , prefixedBody ] . filter ( Boolean ) . join ( "\n" ) . trim ( )
60+ ? [ mediaNote , prefixedBody ] . filter ( Boolean ) . join ( "\n" ) . trim ( )
6561 : prefixedBody ;
6662 const transcriptBody = params . transcriptBody ?? params . effectiveBaseBody ;
6763 const includeMediaTranscript = mediaNote && params . inboundEventKind !== "room_event" ;
@@ -74,7 +70,6 @@ function buildReplyPromptBodies(params: {
7470 : "" ;
7571 return {
7672 mediaNote,
77- mediaReplyHint,
7873 ...( media . length > 0 ? { media } : { } ) ,
7974 prefixedCommandBody : annotateInterSessionPromptText (
8075 prefixedCommandBodyRaw ,
0 commit comments