-
Notifications
You must be signed in to change notification settings - Fork 6
Add 👀 emoji acknowledgment for incoming messages #2
Copy link
Copy link
Open
Description
Summary
When a new message comes in and the bot is already processing, react with 👀 to acknowledge receipt.
How Andy's System Does It
In discord-agent-bridge, the acknowledgment is server-side driven:
- Discord bot receives message, sends it to session manager via webhook
- Session manager returns
{ busy: true }if already processing - Bot reacts with 👀 when it receives
busy: true
The system also uses:
- ⏸️ for paused threads
▶️ for resumed threads- 👀 for busy (message received, will process when ready)
Decision: Option B (Server-side)
Chosen approach: Check BullMQ queue depth, only show 👀 if jobs are already queued for this thread.
Implementation
- Message received → Queue job
- Before queueing, check if thread already has waiting/active jobs in BullMQ
- If queue has pending jobs → React with 👀
- If queue is empty → No reaction (response will come quickly)
Why This Over Option A
- More accurate - doesn't show 👀 for instant responses
- Matches Andy's existing behavior
- Better UX - 👀 means "I see you, working on something else first"
Reference
See system/repos/discord-agent-bridge/src/bot.ts lines 360-363
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels