refactor: prune legacy group prefixes

This commit is contained in:
Peter Steinberger committed 2026-01-17 08:47:25 +00:00
1 parent ab49fe0e92
commit 13b931c006
44 files changed
+160 -179

No files matched your search

+5 -1
View File
@@ -601,7 +601,11 @@ async function dispatchDiscordCommandInteraction(params: {
RawBody: prompt,
CommandBody: prompt,
CommandArgs: commandArgs,
From: isDirectMessage ? `discord:${user.id}` : `group:${channelId}`,
From: isDirectMessage
? `discord:${user.id}`
: isGroupDm
? `discord:group:${channelId}`
: `discord:channel:${channelId}`,
To: `slash:${user.id}`,
SessionKey: `agent:${route.agentId}:${sessionPrefix}:${user.id}`,
CommandTargetSessionKey: route.sessionKey,