fix: prevent typing indicator during heartbeat background tasks

This commit is contained in:
Jake committed 2026-01-05 10:23:22 +13:00
1 parent 1657c5e3d2
commit 424b7fe493
1 file changed
+1 -1
+1 -1
View File
@@ -467,7 +467,7 @@ export async function getReplyFromConfig(
const isFirstTurnInSession = isNewSession || !systemSent;
const isGroupChat = sessionCtx.ChatType === "group";
const wasMentioned = ctx.WasMentioned === true;
const shouldEagerType = !isGroupChat || wasMentioned;
const shouldEagerType = (!isGroupChat || wasMentioned) && !opts?.isHeartbeat;
const shouldInjectGroupIntro = Boolean(
isGroupChat &&
(isFirstTurnInSession || sessionEntry?.groupActivationNeedsSystemIntro),