Skip to content

Commit dfe0408

Browse files
fix(images): skip CLI image cache refs
1 parent fbe0cf0 commit dfe0408

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/agents/embedded-agent-runner/run/images.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ describe("detectImageReferences", () => {
103103
expectNoImageReferences(
104104
`Prior turn wrote ${path.join(resolvePreferredOpenClawTmpDir(), "openclaw-cli-images", "stale.jpg")}`,
105105
);
106+
expectNoImageReferences(
107+
`[media attached: ${path.join(resolvePreferredOpenClawTmpDir(), "openclaw-cli-images", "stale.jpg")} (image/jpeg)]`,
108+
);
106109
expectNoImageReferences(
107110
`Prior turn wrote ${path.join(os.tmpdir(), "openclaw", "openclaw-cli-images", "stale.jpg")}`,
108111
);

0 commit comments

Comments
 (0)