fix(schedule): route daily set-remind phrases through ITL with recurrence
Memind CI / Test, build, and release guards (push) Failing after 3m4s

Support colloquial forms like「设置每天18:00提醒打卡」, persist daily metadata on
commit, and schedule the next reminder after each delivery.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-24 17:42:08 +08:00
parent 4100062ba8
commit 2319c9c808
6 changed files with 77 additions and 2 deletions
+10 -1
View File
@@ -50,7 +50,16 @@ export async function commitIntentDraft({
sourceChannel: payload.sourceChannel ?? 'wechat',
sourceMessageId: payload.sourceMessageId ?? draft.sourceMessageId,
sourceText: payload.sourceText ?? draft.sourceText,
metadata: { source: 'intent_transaction_layer' },
metadata: {
source: 'intent_transaction_layer',
...(payload.recurrence === 'daily'
? {
recurrence: 'daily',
dailyHour: Number(payload.hour),
dailyMinute: Number(payload.minute ?? 0),
}
: {}),
},
});
const reminder = await scheduleService.createReminder({
userId,