diff --git a/packages/opencode/test/cli/run/stream-v2.transport.test.ts b/packages/opencode/test/cli/run/stream-v2.transport.test.ts index d191419e5c..623b93c24d 100644 --- a/packages/opencode/test/cli/run/stream-v2.transport.test.ts +++ b/packages/opencode/test/cli/run/stream-v2.transport.test.ts @@ -108,7 +108,7 @@ function sdk(input: { ) spyOn(client.permission, "list").mockImplementation(() => ok([])) spyOn(client.question, "list").mockImplementation(() => ok([])) - spyOn(client.session, "active").mockImplementation(() => ok({ data: input.active?.() ?? {}, watermarks: {} })) + spyOn(client.session, "active").mockImplementation(() => ok(input.active?.() ?? {})) spyOn(client.session, "switchAgent").mockImplementation(() => ok(undefined)) spyOn(client.session, "switchModel").mockImplementation(() => ok(undefined)) // The generated methods have conditional return types for throwOnError; the