fix: route discord native subagent announce to channel target

This commit is contained in:
Peter Steinberger
2026-02-18 02:42:52 +00:00
parent c1928845ac
commit 4134875c31
3 changed files with 11 additions and 2 deletions

View File

@@ -686,9 +686,9 @@ export const handleSubagentsCommand: CommandHandler = async (params, allowTextCo
{ task, agentId, model, thinking, cleanup: "keep", expectsCompletionMessage: true },
{
agentSessionKey: requesterKey,
agentChannel: params.command.channel,
agentChannel: params.ctx.OriginatingChannel ?? params.command.channel,
agentAccountId: params.ctx.AccountId,
agentTo: params.command.to,
agentTo: params.ctx.OriginatingTo ?? params.command.to,
agentThreadId: params.ctx.MessageThreadId,
agentGroupId: params.sessionEntry?.groupId ?? null,
agentGroupChannel: params.sessionEntry?.groupChannel ?? null,