fix: relax image tool agentDir guard

This commit is contained in:
Peter Steinberger
2026-01-12 18:12:51 +00:00
parent 9526f9861a
commit 2ed95634fe
4 changed files with 21 additions and 9 deletions

View File

@@ -703,7 +703,9 @@ describe("runEmbeddedPiAgent", () => {
).resolves.toBeTruthy();
});
it("persists the first user message before assistant output", async () => {
it(
"persists the first user message before assistant output",
async () => {
const agentDir = await fs.mkdtemp(
path.join(os.tmpdir(), "clawdbot-agent-"),
);
@@ -741,7 +743,9 @@ describe("runEmbeddedPiAgent", () => {
if (firstAssistantIndex !== -1) {
expect(firstUserIndex).toBeLessThan(firstAssistantIndex);
}
});
},
15_000,
);
it("persists the user message when prompt fails before assistant output", async () => {
const agentDir = await fs.mkdtemp(