@@ -1709,7 +1709,8 @@ describe("browser tool snapshot maxChars", () => {
17091709 expect ( imageParams . extraText ) . toContain (
17101710 JSON . stringify ( "/tmp/openclaw-media/outbound/share.png" ) ,
17111711 ) ;
1712- expect ( imageParams . extraText ) . toContain ( "message tool" ) ;
1712+ expect ( imageParams . extraText ) . toContain ( "sanitized outbound copy" ) ;
1713+ expect ( imageParams . extraText ) . not . toContain ( "message tool" ) ;
17131714 expect ( imageParams . details ?. media ) . toEqual ( { outbound : false } ) ;
17141715 expect ( toolCommonMocks . stageBrowserScreenshotForSharing ) . toHaveBeenCalledWith (
17151716 "/tmp/test.png" ,
@@ -1796,7 +1797,8 @@ describe("browser tool snapshot maxChars", () => {
17961797 expect ( joined ) . toContain ( "[neutralized] MEDIA:/tmp/secret.png" ) ;
17971798 expect ( joined ) . toContain ( "/tmp/secret.png" ) ;
17981799 expect ( joined ) . toContain ( JSON . stringify ( "/tmp/openclaw-media/outbound/share.png" ) ) ;
1799- expect ( joined ) . toContain ( "message tool" ) ;
1800+ expect ( joined ) . toContain ( "sanitized outbound copy" ) ;
1801+ expect ( joined ) . not . toContain ( "message tool" ) ;
18001802 // The vision-success path must not surface raw screenshot media via
18011803 // details.media so channel auto-delivery cannot grab the screenshot.
18021804 expect ( ( out ?. details as Record < string , unknown > ) ?. media ) . toBeUndefined ( ) ;
@@ -1851,7 +1853,8 @@ describe("browser tool snapshot maxChars", () => {
18511853 expect ( imageParams . extraText ) . toContain (
18521854 JSON . stringify ( "/tmp/openclaw-media/outbound/share.png" ) ,
18531855 ) ;
1854- expect ( imageParams . extraText ) . toContain ( "message tool" ) ;
1856+ expect ( imageParams . extraText ) . toContain ( "sanitized outbound copy" ) ;
1857+ expect ( imageParams . extraText ) . not . toContain ( "message tool" ) ;
18551858 expect ( imageParams . details ?. media ) . toEqual ( { outbound : false } ) ;
18561859 } ) ;
18571860
0 commit comments