refactor: land approved runtime cleanup and room binding cutover
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { logger } from './logger.js';
|
||||
import { hasAllowedTrigger } from './message-runtime-rules.js';
|
||||
import {
|
||||
handleSessionCommand,
|
||||
type SessionCommandDeps,
|
||||
@@ -32,21 +31,5 @@ export async function handleQueuedRunGates(args: {
|
||||
return cmdResult;
|
||||
}
|
||||
|
||||
if (
|
||||
!hasAllowedTrigger({
|
||||
chatJid: args.chatJid,
|
||||
messages: args.missedMessages,
|
||||
group: args.group,
|
||||
triggerPattern: args.triggerPattern,
|
||||
hasImplicitContinuationWindow: args.hasImplicitContinuationWindow,
|
||||
})
|
||||
) {
|
||||
logger.info(
|
||||
{ chatJid: args.chatJid, group: args.group.name, runId: args.runId },
|
||||
'Skipping queued run because no allowed trigger was found',
|
||||
);
|
||||
return { handled: true, success: true };
|
||||
}
|
||||
|
||||
return { handled: false };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user