





















@@ -648,12 +648,14 @@ function installFastLocalImageProviderStubs(...providers: MediaUnderstandingProv
648648fileName: path.basename(mediaUrl),
649649};
650650},
651-optimizeImageBufferForWebMedia: async ({ buffer, contentType, fileName }) => ({
652- buffer,
653-contentType: contentType ?? "image/png",
654-kind: "image",
655- fileName,
656-}),
651+optimizeImageBufferForWebMedia: async ({ buffer, contentType, fileName }) => {
652+return {
653+ buffer,
654+contentType: contentType ?? "image/png",
655+kind: "image",
656+ fileName,
657+};
658+},
657659}),
658660});
659661}
@@ -1793,7 +1795,7 @@ describe("image tool implicit imageModel config", () => {
17931795await fs.rm(attachmentRoot, { recursive: true, force: true });
17941796}
17951797});
1796-}, 240_000);
1798+});
1797179917981800it("allows image paths from current iMessage wildcard attachment roots", async () => {
17991801await withTempAgentDir(async (agentDir) => {
@@ -1852,7 +1854,7 @@ describe("image tool implicit imageModel config", () => {
18521854await fs.rm(attachmentRootParent, { recursive: true, force: true });
18531855}
18541856});
1855-}, 240_000);
1857+});
1856185818571859it("allows workspace images via createOpenClawCodingTools when workspace root is explicit", async () => {
18581860await withTempWorkspacePng(async ({ workspaceDir, imagePath }) => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。