refactor(opencode): tidy deferred tool test fixtures

This commit is contained in:
Aiden Cline 2026-06-28 21:40:45 -05:00
commit 8e84d9663b
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,6 @@ import { ToolRegistry } from "@/tool/registry"
import type { Context } from "@/tool/tool"
import type { TaskPromptOps } from "@/tool/task"
import { ModelV2 } from "@opencode-ai/core/model"
import { ProviderV2 } from "@opencode-ai/core/provider"
import { SessionV1 } from "@opencode-ai/core/v1/session"
import { jsonSchema, tool, type Tool, type ToolExecutionOptions } from "ai"
import { Effect } from "effect"

View file

@ -63,7 +63,8 @@ const promptOps = {
const toolExecutionOptions = {
toolCallId: "call_deferred",
abortSignal: new AbortController().signal,
} as ToolExecutionOptions
messages: [],
} satisfies ToolExecutionOptions
const makeIt = (input: { flags: Parameters<typeof RuntimeFlags.layer>[0]; queryDescription: string }) =>
testEffect(