fix(codemode): report interrupted tool calls (#38741)

This commit is contained in:
Aiden Cline 2026-07-24 13:32:54 -05:00 committed by GitHub
commit ee5460a152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 106 additions and 21 deletions

View file

@ -40,7 +40,7 @@ export type ExecuteOptions<Provided extends Record<string, unknown> = {}> = {
limits?: ExecutionLimits
/** Observes decoded tool input immediately before tool execution. */
onToolCallStart?: (call: ToolRuntime.ToolCallStarted) => Effect.Effect<void, never, Services<Provided>>
/** Observes each admitted tool call as it settles, with outcome and duration. */
/** Observes each admitted tool call as it succeeds, fails, or is interrupted. */
onToolCallEnd?: (call: ToolRuntime.ToolCallEnded) => Effect.Effect<void, never, Services<Provided>>
}