From 37d8e559917a509dbe00feac2270ec034d3f99db Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 29 Nov 2025 06:02:21 +0000 Subject: [PATCH] Skip responsePrefix for HEARTBEAT_OK responses Preserve exact match so warelay recognizes heartbeat responses and doesn't send them as messages. --- src/web/auto-reply.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/auto-reply.ts b/src/web/auto-reply.ts index 1edaf0165..dfbcce225 100644 --- a/src/web/auto-reply.ts +++ b/src/web/auto-reply.ts @@ -615,9 +615,9 @@ export async function monitorWebProvider( ); return; } - // Apply response prefix if configured (for all messages) + // Apply response prefix if configured (skip for HEARTBEAT_OK to preserve exact match) const responsePrefix = cfg.inbound?.responsePrefix; - if (responsePrefix && replyResult.text) { + if (responsePrefix && replyResult.text && replyResult.text.trim() !== HEARTBEAT_TOKEN) { // Only add prefix if not already present if (!replyResult.text.startsWith(responsePrefix)) { replyResult.text = `${responsePrefix} ${replyResult.text}`;