fix(channels): align command-body parsing sources

This commit is contained in:
Peter Steinberger
2026-03-01 23:11:20 +00:00
parent 4c43fccb3e
commit 8e48520d74
5 changed files with 16 additions and 6 deletions

View File

@@ -611,13 +611,15 @@ export async function prepareSlackMessage(params: {
timestamp: entry.timestamp,
}))
: undefined;
const commandBody = textForCommandDetection.trim();
const ctxPayload = finalizeInboundContext({
Body: combinedBody,
BodyForAgent: rawBody,
InboundHistory: inboundHistory,
RawBody: rawBody,
CommandBody: rawBody,
CommandBody: commandBody,
BodyForCommands: commandBody,
From: slackFrom,
To: slackTo,
SessionKey: sessionKey,