fix: ignore watcher status control messages

This commit is contained in:
Eyejoker
2026-03-23 06:45:04 +09:00
parent 2ab7aedcce
commit 866d4970f3
2 changed files with 55 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import { getLastHumanMessageTimestamp, isPairedRoomJid } from './db.js';
import { filterProcessableMessages } from './bot-message-filter.js';
import { normalizeStoredSeqCursor } from './message-cursor.js';
import { isTriggerAllowed, loadSenderAllowlist } from './sender-allowlist.js';
import { isTaskStatusControlMessage } from './task-watch-status.js';
import {
type Channel,
type NewMessage,
@@ -105,7 +106,7 @@ export function getProcessableMessages(
messages,
isPairedRoomJid(chatJid),
channel?.isOwnMessage?.bind(channel),
);
).filter((message) => !isTaskStatusControlMessage(message.content));
}
export function filterLoopingPairedBotMessages(