fix: agent receives system messages only when mentioned (@slug)
This commit is contained in:
parent
9d757709b2
commit
4b592f367a
@ -67,11 +67,13 @@ export class EventRouter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't respond to system messages (task status changes, assignments, etc.)
|
// System messages: only process if agent is mentioned
|
||||||
if (authorType === 'system') {
|
if (authorType === 'system') {
|
||||||
this.log.debug('Ignoring system message: %s', content.slice(0, 100));
|
if (!content.includes(`@${this.config.slug}`)) {
|
||||||
|
this.log.debug('Ignoring system message (not mentioned): %s', content.slice(0, 100));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!content) {
|
if (!content) {
|
||||||
this.log.warn({ data }, 'message.new event missing content');
|
this.log.warn({ data }, 'message.new event missing content');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user