refactor(core): settle declined tool calls durably with typed reasons (#38734)

This commit is contained in:
Kit Langton 2026-07-24 14:18:02 -04:00 committed by GitHub
commit 5ae2d6d3f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 109 additions and 36 deletions

View file

@ -3569,7 +3569,7 @@ describe("SessionRunnerLLM", () => {
{
type: "tool",
id: "call-declined",
state: { status: "error", error: { message: "Tool execution interrupted" } },
state: { status: "error", error: { type: "aborted", message: "The user declined this tool call" } },
},
],
},
@ -3721,7 +3721,7 @@ describe("SessionRunnerLLM", () => {
{
type: "tool",
id: "call-question",
state: { status: "error", error: { type: "aborted", message: "Tool execution interrupted" } },
state: { status: "error", error: { type: "aborted", message: "The user dismissed this question" } },
},
],
},