mirror of
https://github.com/larchanka/manbot.git
synced 2026-05-13 21:42:08 +00:00
P11-15: Fix Reminder List Handler in Orchestrator
- Add reminder.list handler in handleCoreMessage - Add reminder.cancel handler in handleCoreMessage - Both handlers properly invoke handleListReminders and handleCancelReminder - Add proper error handling for both handlers - Fixes issue where /reminders command was not working Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
Mikhail Larchanka
parent
57b55128d8
commit
f52bbc7666
24
_board/TASKS/P11-15_FIX_REMINDER_LIST_HANDLER.md
Normal file
24
_board/TASKS/P11-15_FIX_REMINDER_LIST_HANDLER.md
Normal file
@@ -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
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user