mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 21:34:32 +00:00
fix (webchat): omit direct conversation labels from inbound metadata context
This commit is contained in:
@@ -52,7 +52,7 @@ export function buildInboundUserContextPrefix(ctx: TemplateContext): string {
|
||||
const isDirect = !chatType || chatType === "direct";
|
||||
|
||||
const conversationInfo = {
|
||||
conversation_label: safeTrim(ctx.ConversationLabel),
|
||||
conversation_label: isDirect ? undefined : safeTrim(ctx.ConversationLabel),
|
||||
group_subject: safeTrim(ctx.GroupSubject),
|
||||
group_channel: safeTrim(ctx.GroupChannel),
|
||||
group_space: safeTrim(ctx.GroupSpace),
|
||||
|
||||
Reference in New Issue
Block a user