mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-22 05:00:41 +00:00
feat(mom): backfill missed messages on startup using conversations.history API
- Add getLastTimestamp() to ChannelStore to read last ts from log.jsonl - Add backfillChannel() to fetch up to 3 pages (3000 messages) per channel - Add backfillAllChannels() called in start() before socket connection - Include mom's own messages (as bot) and user messages, exclude other bots - Process attachments from backfilled messages - Add logging: logBackfillStart, logBackfillChannel, logBackfillComplete - Warn if attachment missing name instead of failing fixes #103
This commit is contained in:
parent
1517e64869
commit
f02194296d
4 changed files with 164 additions and 3 deletions
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Message backfill on startup (#103)
|
||||
- Fetches missed messages from Slack using `conversations.history` API when mom restarts
|
||||
- Backfills up to 3 pages (3000 messages) per channel since last logged timestamp
|
||||
- Includes mom's own responses and user messages (excludes other bots)
|
||||
- Downloads attachments from backfilled messages
|
||||
- Logs progress: channel count, per-channel message counts, total with duration
|
||||
|
||||
## [0.10.2] - 2025-11-27
|
||||
|
||||
### Breaking Changes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue