fix(plugin): ask in tools from plugins returns promise instead of effect (#28217)

This commit is contained in:
James Long
2026-05-18 14:57:29 -04:00
committed by GitHub
parent a88b436eec
commit 12ae22378f
2 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
import { z } from "zod"
import { Effect } from "effect"
export type ToolContext = {
sessionID: string
@@ -17,7 +16,7 @@ export type ToolContext = {
worktree: string
abort: AbortSignal
metadata(input: { title?: string; metadata?: { [key: string]: any } }): void
ask(input: AskInput): Effect.Effect<void>
ask(input: AskInput): Promise<void>
}
type AskInput = {