From 4b592f367af83a7ef8097398a2435e36d18f8963 Mon Sep 17 00:00:00 2001 From: Markov Date: Tue, 24 Feb 2026 12:30:31 +0100 Subject: [PATCH] fix: agent receives system messages only when mentioned (@slug) --- src/router.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/router.ts b/src/router.ts index c352054..6e2f84b 100644 --- a/src/router.ts +++ b/src/router.ts @@ -67,10 +67,12 @@ export class EventRouter { return; } - // Don't respond to system messages (task status changes, assignments, etc.) + // System messages: only process if agent is mentioned if (authorType === 'system') { - this.log.debug('Ignoring system message: %s', content.slice(0, 100)); - return; + if (!content.includes(`@${this.config.slug}`)) { + this.log.debug('Ignoring system message (not mentioned): %s', content.slice(0, 100)); + return; + } } if (!content) {