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

推荐订阅源

V
Visual Studio Blog
U
Unit 42
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
Microsoft Azure Blog
Microsoft Azure Blog
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
博客园 - 司徒正美
Vercel News
Vercel News
I
InfoQ
GbyAI
GbyAI
C
Check Point Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
B
Blog
MyScale Blog
MyScale Blog
腾讯CDC
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 三生石上(FineUI控件)

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: pass media roots to gateway message actions · opencl...
frankekn · 2026-05-11 · via Recent Commits to openclaw:main

@@ -1035,6 +1035,50 @@ describe("gateway send mirroring", () => {

10351035

);

10361036

});

103710371038+

it("passes agent-scoped media roots to gateway message actions", async () => {

1039+

let capturedMediaLocalRoots: readonly string[] | undefined;

1040+

const mediaActionPlugin: ChannelPlugin = {

1041+

id: "telegram",

1042+

meta: {

1043+

id: "telegram",

1044+

label: "Telegram",

1045+

selectionLabel: "Telegram",

1046+

docsPath: "/channels/telegram",

1047+

blurb: "Telegram media action dispatch test plugin.",

1048+

},

1049+

capabilities: { chatTypes: ["direct"] },

1050+

config: {

1051+

listAccountIds: () => ["default"],

1052+

resolveAccount: () => ({ enabled: true }),

1053+

isConfigured: () => true,

1054+

},

1055+

actions: {

1056+

describeMessageTool: () => ({ actions: ["sendAttachment"] }),

1057+

supportsAction: ({ action }) => action === "sendAttachment",

1058+

handleAction: async ({ mediaLocalRoots }) => {

1059+

capturedMediaLocalRoots = mediaLocalRoots;

1060+

return jsonResult({ ok: true });

1061+

},

1062+

},

1063+

};

1064+

mocks.getChannelPlugin.mockReturnValue(mediaActionPlugin);

1065+

setActivePluginRegistry(

1066+

createTestRegistry([{ pluginId: "telegram", source: "test", plugin: mediaActionPlugin }]),

1067+

"send-test-message-action-media-roots",

1068+

);

1069+1070+

const { respond } = await runMessageActionRequest({

1071+

channel: "telegram",

1072+

action: "sendAttachment",

1073+

params: { chatId: "123", mediaUrl: `${TEST_AGENT_WORKSPACE}/render.png` },

1074+

agentId: "work",

1075+

idempotencyKey: "idem-message-action-media-roots",

1076+

});

1077+1078+

expect(firstRespondCall(respond)?.[0]).toBe(true);

1079+

expect(capturedMediaLocalRoots).toEqual(expect.arrayContaining([TEST_AGENT_WORKSPACE]));

1080+

});

1081+10381082

it("forces senderIsOwner=false for narrowly-scoped callers but honors it for full operators", async () => {

10391083

const capture = { senderIsOwner: undefined as boolean | undefined };

10401084

const reactPlugin: ChannelPlugin = {