fix: `onToolResult` fallback is not expected.

This commit is contained in:
cpojer 2026-02-06 09:52:37 +09:00
parent c448e5da6f
commit 8abce8a84d
No known key found for this signature in database
GPG Key ID: C29F94A3201118AF
1 changed files with 1 additions and 10 deletions

View File

@ -316,16 +316,7 @@ export async function dispatchReplyFromConfig(params: {
};
return run();
}
: (payload: ReplyPayload) => {
const run = async () => {
if (shouldRouteToOriginating) {
await sendPayloadAsync(payload, undefined, false);
} else {
dispatcher.sendBlockReply(payload);
}
};
return run();
},
: undefined,
onBlockReply: (payload: ReplyPayload, context) => {
const run = async () => {
// Accumulate block text for TTS generation after streaming