fix(scheduled-task): enable worker by default and add WeChat preflight
Memind CI / Test, build, and release guards (push) Has been cancelled
Memind CI / Test, build, and release guards (push) Has been cancelled
Scheduled automations were saved but never executed because the worker required an explicit env flag. Follow H5_REMINDER_WORKER_ENABLED when unset, add WeChat preflight to write tasks deterministically, and surface worker warnings on create. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -83,7 +83,8 @@ const SCHEDULED_TASK_CLARIFICATION_PATTERNS = [
|
||||
/缺(?:少|失)/u,
|
||||
];
|
||||
|
||||
export function looksLikeScheduledTaskNonDelivery(text) {
|
||||
export function looksLikeScheduledTaskNonDelivery(text, { readyPaths = [] } = {}) {
|
||||
if (Array.isArray(readyPaths) && readyPaths.length > 0) return false;
|
||||
const normalized = String(text ?? '').trim();
|
||||
if (!normalized) return true;
|
||||
if (SCHEDULED_TASK_CLARIFICATION_PATTERNS.some((pattern) => pattern.test(normalized))) {
|
||||
|
||||
Reference in New Issue
Block a user