fix: suppress thinking stream + typing

This commit is contained in:
Peter Steinberger
2025-12-23 14:17:18 +00:00
parent 6d551b0d6e
commit df5284beaf
6 changed files with 40 additions and 3 deletions

View File

@@ -1143,6 +1143,7 @@ export async function monitorWebProvider(
),
SenderName: msg.senderName,
SenderE164: msg.senderE164,
WasMentioned: msg.wasMentioned,
Surface: "whatsapp",
},
{
@@ -1306,6 +1307,7 @@ export async function monitorWebProvider(
"group mention debug",
);
const wasMentioned = mentionDebug.wasMentioned;
msg.wasMentioned = wasMentioned;
const activation = resolveGroupActivationFor(conversationId);
const requireMention = activation !== "always";
if (!shouldBypassMention && requireMention && !wasMentioned) {

View File

@@ -58,6 +58,7 @@ export type WebInboundMessage = {
mediaPath?: string;
mediaType?: string;
mediaUrl?: string;
wasMentioned?: boolean;
};
export async function monitorWebInbox(options: {