Skip to content

feat: implement internal scheduler and mail agent trigger#2

Open
Martins6 wants to merge 5 commits intomainfrom
feat/notify-mail-cron
Open

feat: implement internal scheduler and mail agent trigger#2
Martins6 wants to merge 5 commits intomainfrom
feat/notify-mail-cron

Conversation

@Martins6
Copy link
Owner

Summary

  • Add internal Go-based scheduler replacing external cron/at commands with SQLite-backed task storage
  • Add mail delivery triggers OpenCode agent response with full mail details (sender, subject, content, timestamp)
  • Remove urgency-based mail delivery system (all mails now delivered immediately)
  • Fix multiple issues with notify/mail commands, database initialization, and subprocess config loading
  • Add scheduling-tasks skill and update workspace tool documentation

Changes

  • cmd/schedule.go - New schedule CLI with add/list/delete/run subcommands
  • internal/scheduler/service.go - Internal scheduler with cron/at expression parsing
  • internal/bot/notifier.go - Enhanced notifier with mail agent trigger
  • internal/database/db.go - Extended schema with scheduled_tasks table
  • skills/scheduling-tasks.md - New skill documentation
  • Remove skills/cron.md - Deprecated in favor of scheduling-tasks

Breaking Changes

  • mail list and mail open commands removed (no longer needed with immediate delivery)
  • --urgency flag removed from mail send command

Martins6 added 5 commits March 9, 2026 12:02
- Add SQLite database package for notifications and mails storage
- Implement notify command: opencode-telegram notify "message"
- Implement mail command with send, open, list subcommands
- Support urgency levels: high (immediate), medium (1hr), low (manual)
- Add background polling service for message delivery
- Add cron skill for agent to set up automated tasks
- Extend config with mail urgency timing settings
…y removal

- Add internal Go-based scheduler replacing external cron/at commands
- Add mail delivery triggers OpenCode agent response with full mail details
- Remove urgency-based mail delivery (all mails now immediate)
- Fix mail content parsing with proper quote-aware argument handling
- Fix scheduled notify/mail commands and subprocess config loading
- Fix database initialization with workspace path and directory creation
- Add scheduling-tasks skill and update workspace tool documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant