(channelId: string)
| 332 | job.notifyFailed = notifyFailed; |
| 333 | } |
| 334 | |
| 335 | return { text: fullText, notifyFailed }; |
| 336 | } |
| 337 | |
| 338 | private async clearJobContext(channelId: string): Promise<void> { |
| 339 | console.log(`[Scheduler] Clearing context for ${channelId}`); |
| 340 | const result = await this.agent.handleCommand("clear", channelId); |
| 341 | if (!result.success) { |
| 342 | throw new Error(result.message || `Failed to clear context for ${channelId}`); |
| 343 | } |
| 344 | console.log(`[Scheduler] Context cleared for ${channelId}`); |