Skip to content

feat: send Discord notification before memory compaction#4

Merged
sragss merged 1 commit intomainfrom
craig/compaction-notify
Mar 7, 2026
Merged

feat: send Discord notification before memory compaction#4
sragss merged 1 commit intomainfrom
craig/compaction-notify

Conversation

@sragss
Copy link

@sragss sragss commented Mar 7, 2026

Summary

  • Fire-and-forget Biden-themed message sent to Discord before compaction starts
  • Prevents users from thinking the bot crashed during the 30-60s compaction block
  • Only fires for Discord sessions with a valid OriginatingTo
  • Promise .catch(() => {}) ensures it never blocks compaction

Re-applied from previous fork (was 4e0e1a2dc), adapted to current codebase.

Memory flush + compaction blocks the agent for 30-60+ seconds. Send a
fire-and-forget Biden-style message to Discord before it starts so
users know the bot is still alive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sragss sragss merged commit 9ff335a into main Mar 7, 2026
2 of 9 checks passed
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