fix: guard on agentChannel only, ignore args.channel for delivery check

This commit is contained in:
Hiago Silva 2026-03-16 09:48:20 -03:00 committed by GitHub
parent 134fdce48e
commit 646e1e41dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ export function createTtsTool(opts?: {
const channel = readStringParam(params, "channel");
const resolvedChannel = channel ?? opts?.agentChannel;
if (!opts?.agentChannel && !channel) {
if (!opts?.agentChannel) {
return {
content: [
{