The open source coding agent.
TypeScript
chore: generate
opencode-agent[bot]4214ae205d3d
diff --git a/packages/app/e2e/session/session-review.spec.ts b/packages/app/e2e/session/session-review.spec.tsindex fb6a7ad1dba..c7529112ffd 100644--- a/packages/app/e2e/session/session-review.spec.ts+++ b/packages/app/e2e/session/session-review.spec.ts@@ -64,9 +64,7 @@ async function patchWithMock(// Wait for the agent loop to actually start before checking idle.// promptAsync is fire-and-forget — without this, waitSessionIdle can// return immediately because the session status is still undefined.- await expect- .poll(() => llm.calls().then((c) => c > callsBefore), { timeout: 30_000 })- .toBe(true)+ await expect.poll(() => llm.calls().then((c) => c > callsBefore), { timeout: 30_000 }).toBe(true)await waitSessionIdle(sdk, sessionID, 120_000)}diff --git a/packages/opencode/test/session/snapshot-tool-race.test.ts b/packages/opencode/test/session/snapshot-tool-race.test.tsindex b6c2718c67c..65fd62aa38d 100644--- a/packages/opencode/test/session/snapshot-tool-race.test.ts+++ b/packages/opencode/test/session/snapshot-tool-race.test.ts@@ -183,15 +183,11 @@ it.live("tool execution produces non-empty session diff (snapshot race)", () =>// Use bash tool (always registered) to create a fileconst command = `echo 'snapshot race test content' > ${path.join(dir, "race-test.txt")}`- yield* llm.toolMatch(- (hit) => JSON.stringify(hit.body).includes("create the file"),- "bash",- { command, description: "create test file" },- )- yield* llm.textMatch(- (hit) => JSON.stringify(hit.body).includes("bash"),- "done",- )+ yield* llm.toolMatch((hit) => JSON.stringify(hit.body).includes("create the file"), "bash", {+ command,+ description: "create test file",+ })+ yield* llm.textMatch((hit) => JSON.stringify(hit.body).includes("bash"), "done")// Seed user messageyield* prompt.prompt({@@ -208,7 +204,10 @@ it.live("tool execution produces non-empty session diff (snapshot race)", () =>// Verify the file was createdconst filePath = path.join(dir, "race-test.txt")const fileExists = yield* Effect.promise(() =>- fs.access(filePath).then(() => true).catch(() => false),+ fs+ .access(filePath)+ .then(() => true)+ .catch(() => false),)expect(fileExists).toBe(true)