Merge 087abb4d5f671c1d53746c9caee30be8251f5e86 into 5e417b44e1540f528d2ae63e3e20229a902d1db2

This commit is contained in:
Galygious 2026-03-21 05:00:31 +03:00 committed by GitHub
commit 815ad0eab1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -686,6 +686,11 @@ export const agentHandlers: GatewayRequestHandlers = {
groupChannel: resolvedGroupChannel,
groupSpace: resolvedGroupSpace,
currentThreadTs: resolvedThreadId != null ? String(resolvedThreadId) : undefined,
// Expose resolvedTo as currentChannelId so the message tool's target
// inference (no explicit `to`) routes to the correct thread/channel.
// This allows sub-agents to send messages to the originating thread
// without needing an explicit target parameter.
currentChannelId: resolvedTo || undefined,
},
groupId: resolvedGroupId,
groupChannel: resolvedGroupChannel,