fix: finalize interrupted bash via tool result path (#21724)

This commit is contained in:
Kit Langton 2026-04-09 15:20:28 -04:00 committed by GitHub
commit 3199383eef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 282 additions and 67 deletions

View file

@ -139,17 +139,8 @@ function fake(
get message() {
return msg
},
partFromToolCall() {
return {
id: PartID.ascending(),
messageID: msg.id,
sessionID: msg.sessionID,
type: "tool",
callID: "fake",
tool: "fake",
state: { status: "pending", input: {}, raw: "" },
}
},
updateToolCall: Effect.fn("TestSessionProcessor.updateToolCall")(() => Effect.succeed(undefined)),
completeToolCall: Effect.fn("TestSessionProcessor.completeToolCall")(() => Effect.void),
process: Effect.fn("TestSessionProcessor.process")(() => Effect.succeed(result)),
} satisfies SessionProcessorModule.SessionProcessor.Handle
}