ignore: fix typerrs on dev (#26544)

This commit is contained in:
Aiden Cline
2026-05-09 12:08:00 -05:00
committed by GitHub
parent 780bbb0f3b
commit b1cd25de3d
@@ -8,7 +8,6 @@ import type {
ToolStatePending, ToolStatePending,
ToolStateRunning, ToolStateRunning,
} from "@opencode-ai/sdk/v2" } from "@opencode-ai/sdk/v2"
import { Instance } from "../../src/project/instance"
import { WithInstance } from "../../src/project/with-instance" import { WithInstance } from "../../src/project/with-instance"
import { tmpdir } from "../fixture/fixture" import { tmpdir } from "../fixture/fixture"
@@ -113,6 +112,7 @@ function completedToolEvent(
...(opts.attachments && { attachments: opts.attachments }), ...(opts.attachments && { attachments: opts.attachments }),
} }
const payload: EventMessagePartUpdated = { const payload: EventMessagePartUpdated = {
id: `evt_${opts.callID}`,
type: "message.part.updated", type: "message.part.updated",
properties: { properties: {
sessionID: sessionId, sessionID: sessionId,
@@ -671,7 +671,7 @@ describe("acp.agent event subscription", () => {
test("emits image attachments as ACP tool content blocks on live completed tool updates", async () => { test("emits image attachments as ACP tool content blocks on live completed tool updates", async () => {
await using tmp = await tmpdir() await using tmp = await tmpdir()
await Instance.provide({ await WithInstance.provide({
directory: tmp.path, directory: tmp.path,
fn: async () => { fn: async () => {
const { agent, controller, sessionUpdates, stop } = createFakeAgent() const { agent, controller, sessionUpdates, stop } = createFakeAgent()
@@ -728,7 +728,7 @@ describe("acp.agent event subscription", () => {
test("replays completed tool image attachments as ACP tool content blocks", async () => { test("replays completed tool image attachments as ACP tool content blocks", async () => {
await using tmp = await tmpdir() await using tmp = await tmpdir()
await Instance.provide({ await WithInstance.provide({
directory: tmp.path, directory: tmp.path,
fn: async () => { fn: async () => {
const { agent, sessionUpdates, stop, sdk } = createFakeAgent() const { agent, sessionUpdates, stop, sdk } = createFakeAgent()