diff --git a/_board/TASKS/P11-15_FIX_REMINDER_LIST_HANDLER.md b/_board/TASKS/P11-15_FIX_REMINDER_LIST_HANDLER.md new file mode 100644 index 0000000..843dfc9 --- /dev/null +++ b/_board/TASKS/P11-15_FIX_REMINDER_LIST_HANDLER.md @@ -0,0 +1,24 @@ +# P11-15: Fix Reminder List Handler in Orchestrator + +**File**: `src/core/orchestrator.ts` +**Dependencies**: P11-09 +**Phase**: 5 - Bug Fix + +## Description +Fix the orchestrator to properly handle `reminder.list` messages from telegram-adapter. + +## Problem +The `handleListReminders` and `handleCancelReminder` methods exist but are never called because `handleCoreMessage` doesn't have handlers for `reminder.list` and `reminder.cancel` message types. + +## Acceptance Criteria +- `handleCoreMessage` checks for `reminder.list` type from telegram-adapter +- `handleCoreMessage` checks for `reminder.cancel` type from telegram-adapter +- Both handlers properly invoke the respective methods +- Error handling is in place for both handlers + +## Implementation Notes +- Add `reminder.list` handler in `handleCoreMessage` before `task.create` handler +- Add `reminder.cancel` handler in `handleCoreMessage` before `task.create` handler +- Both should check `fromProcess === "telegram-adapter"` +- Extract `chatId` and `reminderId` (for cancel) from payload +- Call the respective handler methods with proper error handling diff --git a/_board/_BOARD.md b/_board/_BOARD.md index cf42d79..4184192 100644 --- a/_board/_BOARD.md +++ b/_board/_BOARD.md @@ -2,6 +2,15 @@ ## To Do +### P11-15 Fix Reminder List Handler in Orchestrator +- tags: [todo, reminder-system, phase-5, bugfix] +- defaultExpanded: false + ```md + Fix the orchestrator to properly handle reminder.list messages from telegram-adapter. + + Source: P11-15_FIX_REMINDER_LIST_HANDLER.md + ``` + ### P11-12 Manual End-to-End Testing - tags: [todo, reminder-system, phase-6, testing] - defaultExpanded: false @@ -13,6 +22,15 @@ ## In Progress +### P11-15 Fix Reminder List Handler in Orchestrator +- tags: [in-progress, reminder-system, phase-5, bugfix] +- defaultExpanded: false + ```md + Fix the orchestrator to properly handle reminder.list messages from telegram-adapter. + + Source: P11-15_FIX_REMINDER_LIST_HANDLER.md + ``` + ## Done ### P11-14 Fix Cron Expression Extraction in Executor - tags: [done, reminder-system, phase-4, bugfix]