fix(discord): preserve native command session keys

This commit is contained in:
Peter Steinberger
2026-03-08 01:03:08 +00:00
parent cf1c2cc208
commit bc91ae9ca0
3 changed files with 57 additions and 1 deletions

View File

@@ -1644,7 +1644,7 @@ async function dispatchDiscordCommandInteraction(params: {
return;
}
}
const configuredBoundSessionKey = configuredRoute?.boundSessionKey ?? "";
const configuredBoundSessionKey = configuredRoute?.boundSessionKey?.trim() || undefined;
const boundSessionKey = threadBinding?.targetSessionKey?.trim() || configuredBoundSessionKey;
const boundAgentId = boundSessionKey ? resolveAgentIdFromSessionKey(boundSessionKey) : undefined;
const effectiveRoute = boundSessionKey