惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
罗磊的独立博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
宝玉的分享
宝玉的分享
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
美团技术团队
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(whatsapp): extract GIF metadata and distinguish gifPl...
liuhao1024 · 2026-06-17 · via Recent Commits to openclaw:main

@@ -61,6 +61,7 @@ import {

6161

} from "./durable-receive.js";

6262

import {

6363

describeReplyContext,

64+

extractExternalAdReplyContext,

6465

extractLocationData,

6566

extractContactContext,

6667

extractMediaPlaceholder,

@@ -1001,6 +1002,7 @@ export async function attachWebInboxToSocket(

10011002

body: string;

10021003

location?: ReturnType<typeof extractLocationData>;

10031004

contactContext?: ReturnType<typeof extractContactContext>;

1005+

externalAdReplyContext?: ReturnType<typeof extractExternalAdReplyContext>;

10041006

replyContext?: ReturnType<typeof describeReplyContext>;

10051007

mediaPath?: string;

10061008

mediaType?: string;

@@ -1011,6 +1013,7 @@ export async function attachWebInboxToSocket(

10111013

const location = extractLocationData(msg.message ?? undefined);

10121014

const locationText = location ? formatLocationText(location) : undefined;

10131015

const contactContext = extractContactContext(msg.message ?? undefined);

1016+

const externalAdReplyContext = extractExternalAdReplyContext(msg.message ?? undefined);

10141017

let body = extractText(msg.message ?? undefined);

10151018

if (locationText) {

10161019

body = [body, locationText].filter(Boolean).join("\n").trim();

@@ -1055,6 +1058,7 @@ export async function attachWebInboxToSocket(

10551058

body,

10561059

location: location ?? undefined,

10571060

contactContext,

1061+

externalAdReplyContext,

10581062

replyContext,

10591063

mediaPath,

10601064

mediaType,

@@ -1137,6 +1141,28 @@ export async function attachWebInboxToSocket(

11371141

mentions: groupMentions,

11381142

}

11391143

: undefined;

1144+

const untrustedStructuredContext = [

1145+

...(enriched.contactContext

1146+

? [

1147+

{

1148+

label: "WhatsApp contact",

1149+

source: "whatsapp",

1150+

type: enriched.contactContext.kind,

1151+

payload: enriched.contactContext,

1152+

},

1153+

]

1154+

: []),

1155+

...(enriched.externalAdReplyContext

1156+

? [

1157+

{

1158+

label: "WhatsApp external ad reply",

1159+

source: "whatsapp",

1160+

type: "external_ad_reply",

1161+

payload: enriched.externalAdReplyContext,

1162+

},

1163+

]

1164+

: []),

1165+

];

11401166

const inboundMessage: QueuedInboundMessage = withDeprecatedWebInboundMessageFlatAliases({

11411167

admission: inbound.access.admission,

11421168

event: {

@@ -1146,16 +1172,8 @@ export async function attachWebInboxToSocket(

11461172

payload: {

11471173

body: enriched.body,

11481174

location: enriched.location ?? undefined,

1149-

untrustedStructuredContext: enriched.contactContext

1150-

? [

1151-

{

1152-

label: "WhatsApp contact",

1153-

source: "whatsapp",

1154-

type: enriched.contactContext.kind,

1155-

payload: enriched.contactContext,

1156-

},

1157-

]

1158-

: undefined,

1175+

untrustedStructuredContext:

1176+

untrustedStructuredContext.length > 0 ? untrustedStructuredContext : undefined,

11591177

media,

11601178

},

11611179

platform: {