fix(images): skip CLI image cache refs

This commit is contained in:
clawsweeper
2026-05-28 09:21:53 +00:00
parent fbe0cf04f8
commit dfe0408df8

View File

@@ -103,6 +103,9 @@ describe("detectImageReferences", () => {
expectNoImageReferences(
`Prior turn wrote ${path.join(resolvePreferredOpenClawTmpDir(), "openclaw-cli-images", "stale.jpg")}`,
);
expectNoImageReferences(
`[media attached: ${path.join(resolvePreferredOpenClawTmpDir(), "openclaw-cli-images", "stale.jpg")} (image/jpeg)]`,
);
expectNoImageReferences(
`Prior turn wrote ${path.join(os.tmpdir(), "openclaw", "openclaw-cli-images", "stale.jpg")}`,
);