refactor: убрана фильтрация system messages (перенесена в Tracker)
This commit is contained in:
parent
e76e84ffc0
commit
c151a69de5
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user