From c151a69de562dfe34bd02b0d9d944b763c0732fb Mon Sep 17 00:00:00 2001 From: Markov Date: Tue, 24 Feb 2026 23:40:17 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=D1=83=D0=B1=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20system=20messages=20(=D0=BF=D0=B5=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D1=81=D0=B5=D0=BD=D0=B0=20=D0=B2=20Tracker)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/router.ts b/src/router.ts index a13d22f..b14539c 100644 --- a/src/router.ts +++ b/src/router.ts @@ -61,20 +61,12 @@ export class EventRouter { const chatId = data.chat_id as string | undefined; const taskKey = data.task_key as string | undefined; - // Don't respond to own messages + // Don't respond to own messages (safety net — Tracker already filters) if (authorSlug === this.config.slug) { this.log.debug('Ignoring own message'); return; } - // System messages: only process if agent is mentioned - if (authorType === 'system') { - if (!content.includes(`@${this.config.slug}`)) { - this.log.debug('Ignoring system message (not mentioned): %s', content.slice(0, 100)); - return; - } - } - if (!content) { this.log.warn({ data }, 'message.new event missing content'); return;