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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator 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(agents): preserve trusted tool media provenance · ope...
vincentkoc · 2026-05-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -28,6 +28,7 @@ Docs: https://docs.openclaw.ai

2828

- Telegram/Gateway: route targeted Telegram `/stop@bot` messages onto the control lane without cached bot metadata and match gateway stop requests across raw/canonical session aliases. (#82298) Thanks @VACInc.

2929

- MS Teams/media: sniff inline `data:image/*` attachment bytes before staging them, skipping payloads that are not actually images.

3030

- WebChat/media: require trusted local-media provenance before preserving local audio reply paths for display, so untrusted audio-looking paths go through normal staging and read-policy checks.

31+

- Agents/tool media: preserve trusted local-media provenance when merging generated tool attachments into final reply payloads, so trusted audio/media survives outbound display normalization.

3132

- Update: let package-swap `doctor --fix` persist core config repairs while plugin schemas are still converging, preventing update failures on externalized channel configs.

3233

- Update: carry plugin-validation bypasses into config mutation pre-write reads, so package update doctor repairs can finish while externalized plugin schemas are converging.

3334

- Update/doctor: keep plugin-validation bypasses on the top-level `$include` config write path, so package repair can update included plugin config files without flattening them into the root config.

Original file line numberDiff line numberDiff line change

@@ -2516,6 +2516,7 @@ export async function runEmbeddedPiAgent(

25162516

payloads,

25172517

toolMediaUrls: attempt.toolMediaUrls,

25182518

toolAudioAsVoice: attempt.toolAudioAsVoice,

2519+

toolTrustedLocalMedia: attempt.toolTrustedLocalMedia,

25192520

});

25202521

const timedOutDuringPrompt =

25212522

timedOut && !timedOutDuringCompaction && !timedOutDuringToolExecution;

Original file line numberDiff line numberDiff line change

@@ -4277,6 +4277,7 @@ export async function runEmbeddedAttempt(

42774277

heartbeatToolResponse: getHeartbeatToolResponse(),

42784278

toolMediaUrls: pendingToolMediaReply?.mediaUrls,

42794279

toolAudioAsVoice: pendingToolMediaReply?.audioAsVoice,

4280+

toolTrustedLocalMedia: pendingToolMediaReply?.trustedLocalMedia,

42804281

successfulCronAdds: getSuccessfulCronAdds(),

42814282

cloudCodeAssistFormatError: Boolean(

42824283

lastAssistant?.errorMessage && isCloudCodeAssistFormatError(lastAssistant.errorMessage),

Original file line numberDiff line numberDiff line change

@@ -70,4 +70,23 @@ describe("mergeAttemptToolMediaPayloads", () => {

7070

deliverDespiteSourceReplySuppression: true,

7171

});

7272

});

73+
74+

it("preserves trusted local media provenance when merging tool media", () => {

75+

expect(

76+

mergeAttemptToolMediaPayloads({

77+

payloads: [{ text: "done" }],

78+

toolMediaUrls: ["/tmp/reply.opus"],

79+

toolAudioAsVoice: true,

80+

toolTrustedLocalMedia: true,

81+

}),

82+

).toEqual([

83+

{

84+

text: "done",

85+

mediaUrls: ["/tmp/reply.opus"],

86+

mediaUrl: "/tmp/reply.opus",

87+

audioAsVoice: true,

88+

trustedLocalMedia: true,

89+

},

90+

]);

91+

});

7392

});

Original file line numberDiff line numberDiff line change

@@ -7,11 +7,12 @@ export function mergeAttemptToolMediaPayloads(params: {

77

payloads?: EmbeddedRunPayload[];

88

toolMediaUrls?: string[];

99

toolAudioAsVoice?: boolean;

10+

toolTrustedLocalMedia?: boolean;

1011

}): EmbeddedRunPayload[] | undefined {

1112

const mediaUrls = Array.from(

1213

new Set(params.toolMediaUrls?.map((url) => url.trim()).filter(Boolean) ?? []),

1314

);

14-

if (mediaUrls.length === 0 && !params.toolAudioAsVoice) {

15+

if (mediaUrls.length === 0 && !params.toolAudioAsVoice && !params.toolTrustedLocalMedia) {

1516

return params.payloads;

1617

}

1718

@@ -25,6 +26,7 @@ export function mergeAttemptToolMediaPayloads(params: {

2526

mediaUrls: mergedMediaUrls.length ? mergedMediaUrls : undefined,

2627

mediaUrl: payload.mediaUrl ?? mergedMediaUrls[0],

2728

audioAsVoice: payload.audioAsVoice || params.toolAudioAsVoice || undefined,

29+

trustedLocalMedia: payload.trustedLocalMedia || params.toolTrustedLocalMedia || undefined,

2830

});

2931

return payloads;

3032

}

@@ -35,6 +37,7 @@ export function mergeAttemptToolMediaPayloads(params: {

3537

mediaUrls: mediaUrls.length ? mediaUrls : undefined,

3638

mediaUrl: mediaUrls[0],

3739

audioAsVoice: params.toolAudioAsVoice || undefined,

40+

trustedLocalMedia: params.toolTrustedLocalMedia || undefined,

3841

},

3942

];

4043

}

Original file line numberDiff line numberDiff line change

@@ -122,6 +122,7 @@ export type EmbeddedRunAttemptResult = {

122122

heartbeatToolResponse?: HeartbeatToolResponse;

123123

toolMediaUrls?: string[];

124124

toolAudioAsVoice?: boolean;

125+

toolTrustedLocalMedia?: boolean;

125126

successfulCronAdds?: number;

126127

cloudCodeAssistFormatError: boolean;

127128

attemptUsage?: NormalizedUsage;

Original file line numberDiff line numberDiff line change

@@ -173,6 +173,7 @@ export type EmbeddedPiRunResult = {

173173

isError?: boolean;

174174

isReasoning?: boolean;

175175

audioAsVoice?: boolean;

176+

trustedLocalMedia?: boolean;

176177

channelData?: Record<string, unknown>;

177178

}>;

178179

meta: EmbeddedPiRunMeta;