This commit is contained in:
adam91holt 2026-01-29 20:33:48 +01:00 committed by GitHub
commit 037ee5452a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -323,6 +323,16 @@ export async function dispatchReplyFromConfig(params: {
};
return run();
},
onToolResult: (payload: ReplyPayload) => {
const run = async () => {
if (shouldRouteToOriginating) {
await sendPayloadAsync(payload, undefined, false);
} else {
dispatcher.sendBlockReply(payload);
}
};
return run();
},
},
cfg,
);