Troubleshooting

Agent Sent Duplicate Replies?

A fast fix for the "double reply" loop in Discord when your agent posts the same answer twice.

This usually looks like: one user message, then two near-identical bot responses. It feels random, but it’s often a policy or routing overlap problem, not a model-quality issue.

Most common pattern

The bot receives the same event from two paths (or two active responders) and processes both.

2-Minute Recovery Checklist

  1. Confirm scope: one channel only, or everywhere?
  2. Verify single responder: ensure only one bot/app is active for that conversation.
  3. Check mention policy: if you require mentions, test with one explicit @mention.
  4. Restart gateway/session after policy/config changes.
  5. Run clean test: new channel/thread, one short prompt, observe exactly one response.

Known-Good Verification Prompt (Copy/Paste)

I’m seeing duplicate replies. Diagnose before changing anything.

Step 1) Show current response policy settings relevant to Discord replies.
Step 2) Confirm there is only one active responder path for this channel/thread.
Step 3) Propose the smallest fix to prevent duplicate responses.
Step 4) After applying fix, run one clean-room test and return proof:
- test channel/thread used
- input message
- exact output count (must be 1)
- timestamp + timezone

High-Friction Root Causes

1) Two active bots or integrations in the same channel

If a legacy bot and your current agent both listen to the same messages, users can see what looks like a duplicate answer.

2) Policy overlap (open group + mention logic confusion)

Mixed rules can create accidental double-processing in noisy channels. Pick a single clear trigger mode for testing.

3) Stale runtime after config edits

Settings can look correct in files/UI while the old runtime behavior is still active. Restart, then retest in a clean channel.

4) Cross-thread/session mismatch

If messages are mirrored or forwarded between thread contexts, the same user input can be handled more than once.

Best practice

During diagnosis, force a single trigger path: one bot, one channel, one mention policy, one test message.

What to Capture for Escalation

Don’t do this

Don’t keep changing multiple settings at once. Make one change, restart, run one test. Otherwise you can’t tell what fixed it.