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

推荐订阅源

H
Help Net Security
T
ThreatConnect
SecWiki News
SecWiki News
F
Future of Privacy Forum
AWS News Blog
AWS News Blog
C
Cisco Blogs
A
Arctic Wolf
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
V2EX
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
K
Kaspersky official blog
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News | PayPal Newsroom
Schneier on Security
Schneier on Security
NISL@THU
NISL@THU
Microsoft Azure Blog
Microsoft Azure Blog
量子位
The Hacker News
The Hacker News
Stack Overflow Blog
Stack Overflow Blog
Security Latest
Security Latest
M
Microsoft Research Blog - Microsoft Research
Google Online Security Blog
Google Online Security Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
InfoQ
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
F
Fox-IT International blog
S
Security @ Cisco Blogs
博客园 - 司徒正美
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Comments on: Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LINUX DO - 最新话题
GbyAI
GbyAI
Project Zero
Project Zero
腾讯CDC
T
Tailwind CSS Blog

Recent Commits to openclaw:main

chore(release): refresh plugin sdk api baseline · openclaw/openclaw@918472a fix(e2e): fail on invalid test state payloads · openclaw/openclaw@4a1d772 ci(release): apply exact extension batch excludes fix(installer): reject invalid shell options ci(release): pass vitest batch options before roots ci(release): exclude codex app-server integration from plugin prerelease · openclaw/openclaw@a3cd90f fix(imessage): send group media via attachment command (#86770) · openclaw/openclaw@17f7ef5 test(e2e): assert release upgrade installs candidate · openclaw/openclaw@41eef4a ci(release): serialize plugin prerelease extension batch · openclaw/openclaw@a46556a fix(scripts): add docker e2e scheduler help · openclaw/openclaw@81f62a6 test(codex): wait for diagnostic event locally · openclaw/openclaw@083377a test(e2e): assert release plugin uninstall removes files · openclaw/openclaw@4b03e07 test(telegram): use platform temp path in bot harness · openclaw/openclaw@16d137d fix(imessage): seed direct DM history (#86706) · openclaw/openclaw@3452382 test(codex): complete diagnostic turn explicitly · openclaw/openclaw@11b1b7c test(scripts): make run-vitest test Windows-safe · openclaw/openclaw@5c3fb1f test: restore auth regression coverage · openclaw/openclaw@c04c03f fix(test): reject missing explicit vitest files · openclaw/openclaw@505aca9 test(plugins): canonicalize plugin install assertion paths · openclaw/openclaw@5174d97 fix(diagnostics): track model stream progress (#86757) · openclaw/openclaw@23e9bc8 Preserve runtime external auth snapshots (#85558) · openclaw/openclaw@711e963 fix(test): prepare macos runner tmpdir · openclaw/openclaw@7db4b3d test(agents): stabilize yielded exec timeout test · openclaw/openclaw@c14c043 test: stabilize media fallback and background timeout tests · openclaw/openclaw@3bb4be2 fix(whatsapp): warn once when group inbound dropped for missing chann… chore(release): refresh plugin sdk api baseline · openclaw/openclaw@e752f9b test(whatsapp): stabilize media format expectations · openclaw/openclaw@c43ed9e test(qqbot): make OPENCLAW_HOME media test Windows-safe · openclaw/openclaw@1e9b6b7 fix(test): forward installer smoke controls test: align image fast path expectations · openclaw/openclaw@21aefb8 test: align pnpm cache workflow assertion · openclaw/openclaw@c4f0682 test: enforce per-test ci threshold · openclaw/openclaw@4118a32 ci(mantis): pass crabbox capacity regions · openclaw/openclaw@4fdf617 ci: disable pnpm action cache on Windows · openclaw/openclaw@bc3d6ba fix(agents): skip wildcard catalog metadata refs (#86524) fix(test): bootstrap macos script stdin test(codex): avoid app-server diagnostic notification race fix(embedded-runner): preserve provider errors on cleanup takeover (#… · openclaw/openclaw@7fbca96 fix(agents): handle preflight compaction no-op budgets (#86709) · openclaw/openclaw@bcde7b1 fix: make QQ Bot media paths respect `OPENCLAW_HOME` configuration (#… · openclaw/openclaw@0d23c3b fix(tooling): skip gauntlet declaration prebuild fix(control-ui): support raw edits from editable config (#86726) · openclaw/openclaw@c9d0464 revert: iMessage group media attachment command (#86734) · openclaw/openclaw@5a33378 fix(release): stabilize beta validation after rebase · openclaw/openclaw@609d70d fix(test): measure kitchen sink gateway children · openclaw/openclaw@4738d0a fix(whatsapp): restore ack emoji identity fallback (#86697) · openclaw/openclaw@34d862d fix(imessage): send group media via attachment command · openclaw/openclaw@f322732 fix(test): harden plugin gauntlet proof · openclaw/openclaw@eab8d29 fix(release): stabilize beta validation after main rebase · openclaw/openclaw@9301598 refactor: use Rastermill for image processing (#86621) perf(discord): use libopus-wasm for voice opus fix(build): pin synthetic auth runtime dist entry (#86714) · openclaw/openclaw@3d06594 fix(plugin-sdk): preserve string-const unions as flat enum for deepse… · openclaw/openclaw@fddca99 fix(perf): bound session transcript stat fanout · openclaw/openclaw@2e6ba44 fix(test): bound plugin gauntlet prebuilds · openclaw/openclaw@6984a82 perf: speed up usage cost lookups · openclaw/openclaw@743bce2 Add OpenTelemetry LLM content spans (#86191) · openclaw/openclaw@f824e15 chore: remove unused tracked assets · openclaw/openclaw@592f192 fix(release): accept optional Discord voice decoder · openclaw/openclaw@8f1f790 fix(perf): tolerate passing filtered release gates · openclaw/openclaw@c410658 fix(release): stabilize beta validation tests · openclaw/openclaw@e049105 fix(ui): refresh raw copy i18n baseline · openclaw/openclaw@010a79b fix(packaging): bound dist inventory filesystem scans fix(test): remove image tool timeout slack · openclaw/openclaw@669df88 fix(cron): accept opaque session target keys · openclaw/openclaw@c9364f0 fix: honor skill source install aliases (#84842) · openclaw/openclaw@24d58af fix(test): avoid message tool bundled channel loads · openclaw/openclaw@6421808 test(onboard): guard docker e2e resources · openclaw/openclaw@80aa6d7 chore: bump OpenClaw to 2026.5.26 · openclaw/openclaw@d00d0a2 fix: stabilize discord voice receive recovery · openclaw/openclaw@321f06a perf: reduce session and auth cache hotpath work (#86678) · openclaw/openclaw@ee51169 fix(qa): stream gateway gauntlet prebuild output fix(cli): route plugin packaging recovery hints · openclaw/openclaw@56633e4 perf(agents): reuse model manifest context · openclaw/openclaw@ea2496b fix(diagnostics): expose missing telemetry signals (#86682) · openclaw/openclaw@ef8619d perf: avoid extra session snapshot cloning · openclaw/openclaw@71e9eaa fix: avoid compaction checkpoint transcript copies (#86666) · openclaw/openclaw@c59635a fix: preserve code mode failure output test: avoid message tool discovery in send helper · openclaw/openclaw@1514cc8 fix(scripts): bound guard inventory file reads · openclaw/openclaw@6defcb0 fix(test): isolate kitchen sink rpc home env feat(signal): support reaction approvals (#85894) fix(scripts): bound source scan file reads · openclaw/openclaw@57748a6 test(ollama): support cloud api live smoke · openclaw/openclaw@2a6b4ed test: serialize agents tools vitest files · openclaw/openclaw@978a2d0 fix(auto-reply): use context-aware overflow reserve hints (#84399) · openclaw/openclaw@3a4f2b1 feat(gateway): forward OpenAI sampling params (#84094) · openclaw/openclaw@6c7b3f3 perf: cache model cost indexes · openclaw/openclaw@068924e fix: hide unsupported best effort message option · openclaw/openclaw@5dc7043 refactor: reuse realtime output activity in google meet (#86665) fix(test): harden bundled plugin install sweep · openclaw/openclaw@84929e4 fix: prefer source public artifacts in source checkouts · openclaw/openclaw@c87957d test: type child process spawn mock · openclaw/openclaw@65a2105 test(installer): cover rocky cli installs · openclaw/openclaw@fe33747 docs: update changelog for landed fixes · openclaw/openclaw@da831e2 fix: dampen repeated device-required probes · openclaw/openclaw@399c692 fix(ui): keep local file markdown links inert · openclaw/openclaw@fc2d2d5 fix(update): avoid duplicate plugin smoke failures · openclaw/openclaw@342bde2 fix(gateway): cap retained compaction checkpoint bytes · openclaw/openclaw@d7361ef fix: stabilize tests and reduce plugin memory churn · openclaw/openclaw@c1a026a
Fix iMessage image attachment roots (#86569) · openclaw/openclaw@2e17003
omarshahine · 2026-05-26 · via Recent Commits to openclaw:main

@@ -28,6 +28,9 @@ type MockOpenClawToolsOptions = {

2828

sandboxRoot?: string;

2929

sandboxFsBridge?: SandboxFsBridge;

3030

fsPolicy?: NonNullable<Parameters<typeof createImageTool>[0]>["fsPolicy"];

31+

agentChannel?: string | null;

32+

agentAccountId?: string | null;

33+

currentChannelId?: string | null;

3134

modelHasVision?: boolean;

3235

};

3336

@@ -167,6 +170,9 @@ vi.mock("../openclaw-tools.js", async () => {

167170

}

168171

: undefined,

169172

fsPolicy: options?.fsPolicy,

173+

agentChannel: options?.agentChannel,

174+

agentAccountId: options?.agentAccountId,

175+

currentChannelId: options?.currentChannelId,

170176

modelHasVision: options?.modelHasVision,

171177

});

172178

return imageTool ? [imageTool] : [];

@@ -1640,6 +1646,85 @@ describe("image tool implicit imageModel config", () => {

16401646

});

16411647

});

164216481649+

it("allows image paths from the current iMessage account attachment roots", async () => {

1650+

const fetch = stubMinimaxOkFetch();

1651+

await withTempAgentDir(async (agentDir) => {

1652+

const attachmentRoot = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-imessage-root-"));

1653+

const imagePath = path.join(attachmentRoot, "photo.png");

1654+

await fs.writeFile(imagePath, Buffer.from(ONE_PIXEL_PNG_B64, "base64"));

1655+

try {

1656+

const cfg: OpenClawConfig = {

1657+

...createMinimaxImageConfig(),

1658+

channels: {

1659+

imessage: {

1660+

accounts: {

1661+

work: {

1662+

attachmentRoots: [attachmentRoot],

1663+

},

1664+

},

1665+

},

1666+

},

1667+

};

1668+1669+

const withoutChannel = createRequiredImageTool({ config: cfg, agentDir });

1670+

await expect(

1671+

withoutChannel.execute("t1", { prompt: "Describe.", image: imagePath }),

1672+

).rejects.toThrow(/not under an allowed directory/i);

1673+1674+

const withImessage = createRequiredImageTool({

1675+

config: cfg,

1676+

agentDir,

1677+

agentChannel: "imessage",

1678+

agentAccountId: "work",

1679+

});

1680+1681+

await expectImageToolExecOk(withImessage, imagePath);

1682+

expect(fetch).toHaveBeenCalledTimes(1);

1683+

} finally {

1684+

await fs.rm(attachmentRoot, { recursive: true, force: true });

1685+

}

1686+

});

1687+

});

1688+1689+

it("allows image paths from current iMessage wildcard attachment roots", async () => {

1690+

const fetch = stubMinimaxOkFetch();

1691+

await withTempAgentDir(async (agentDir) => {

1692+

const attachmentRootParent = await fs.mkdtemp(

1693+

path.join(os.tmpdir(), "openclaw-imessage-wildcard-root-"),

1694+

);

1695+

const attachmentRoot = path.join(attachmentRootParent, "work", "Attachments");

1696+

const imagePath = path.join(attachmentRoot, "photo.png");

1697+

await fs.mkdir(attachmentRoot, { recursive: true });

1698+

await fs.writeFile(imagePath, Buffer.from(ONE_PIXEL_PNG_B64, "base64"));

1699+

try {

1700+

const cfg: OpenClawConfig = {

1701+

...createMinimaxImageConfig(),

1702+

channels: {

1703+

imessage: {

1704+

accounts: {

1705+

work: {

1706+

attachmentRoots: [path.join(attachmentRootParent, "*", "Attachments")],

1707+

},

1708+

},

1709+

},

1710+

},

1711+

};

1712+1713+

const withImessage = createRequiredImageTool({

1714+

config: cfg,

1715+

agentDir,

1716+

agentChannel: "imessage",

1717+

agentAccountId: "work",

1718+

});

1719+1720+

await expectImageToolExecOk(withImessage, imagePath);

1721+

expect(fetch).toHaveBeenCalledTimes(1);

1722+

} finally {

1723+

await fs.rm(attachmentRootParent, { recursive: true, force: true });

1724+

}

1725+

});

1726+

});

1727+16431728

it("allows workspace images via createOpenClawCodingTools when workspace root is explicit", async () => {

16441729

await withTempWorkspacePng(async ({ workspaceDir, imagePath }) => {

16451730

const fetch = stubMinimaxOkFetch();