chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-03 02:43:28 +00:00
parent 83452558f7
commit 6003217eaa
17 changed files with 216 additions and 91 deletions

View File

@@ -26,11 +26,7 @@ function createReasoningPart(text: string): SessionV1.Part {
}
}
function createToolPart(
tool: string,
title: string,
status: "completed" | "running" = "completed",
): SessionV1.Part {
function createToolPart(tool: string, title: string, status: "completed" | "running" = "completed"): SessionV1.Part {
if (status === "completed") {
return {
id: PartID.ascending(),

View File

@@ -330,9 +330,7 @@ it.live("session.processor effect tests preserve text start time", () =>
gate.resolve()
const exit = yield* Fiber.await(run)
const text = (yield* MessageV2.parts(msg.id)).find(
(part): part is SessionV1.TextPart => part.type === "text",
)
const text = (yield* MessageV2.parts(msg.id)).find((part): part is SessionV1.TextPart => part.type === "text")
expect(Exit.isSuccess(exit)).toBe(true)
expect(text?.text).toBe("hello")