agent/pkg/monitor
Snider 36dc76cce1
Some checks failed
CI / test (push) Failing after 3s
feat(monitor): ID-based inbox detection + channels fully working
Track inbox by highest message ID instead of unread count. Fixes:
- API pagination limit (max 20) no longer causes missed notifications
- Restart no longer floods with all existing unread messages (seeded)
- Each new message fires exactly once regardless of read state

Added MONITOR_INTERVAL env override and debugChannel helper for
faster iteration during channel development.

All three channel types confirmed working:
- agent.complete: workspace status changes
- inbox.message: new messages by ID tracking
- monitor.debug: real-time debug trace

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-21 19:31:11 +00:00
..
harvest.go fix: Codex round 8 — remote success propagation + stale question cleanup 2026-03-21 17:46:04 +00:00
harvest_test.go test(monitor): add harvest and channel notification tests 2026-03-21 13:21:23 +00:00
monitor.go feat(monitor): ID-based inbox detection + channels fully working 2026-03-21 19:31:11 +00:00
monitor_test.go fix(monitor): inbox API returns {data:[...]} not {messages:[...]} 2026-03-21 19:17:53 +00:00
sync.go fix: address Codex round 7 — path traversal + dispatch check 2026-03-21 17:25:23 +00:00