Your agent answers once in the chat. Then the same answer appears again two seconds later. Or you send three quick messages, and it replies to all three twice. Either way, it looks broken, and if this is a customer channel, it is.
Duplicate replies are rarely a model problem. The model usually writes one answer. Something in the plumbing delivers it more than once: a second gateway holding the same bot token, an inbound event that gets replayed, a streaming preview that never gets replaced, or a tool send plus the automatic reply both firing.
You do not need to rewrite prompts or switch models. You need to find out which layer is sending twice. This guide walks through the four causes in order, cheapest fix first. Most people find their duplicate in the first two checks, and the whole diagnosis takes about five minutes.
The Short Answer: Check These Four Places
Almost every duplicate falls into one of these buckets:
- Two gateways, one bot token. Both connect to the same chat platform, both receive the event, and both reply.
- Duplicate inbound delivery. A queued or retried message gets handed to the agent twice.
- Streaming overlap. A preview or block message is sent, then the final answer is sent again as a new message.
- Double send from the agent. The agent uses the message tool and the normal reply path in the same turn.
Start with the first one. It is the most common, and it is the fastest to rule out.
Why This Happens
OpenClaw’s gateway owns the connection to Discord, Telegram, Slack, or whatever channel you use. That is deliberate: one process holds the socket, receives events, routes them to a session, and sends the reply back. When there is one gateway, there is one path in and one path out.
The trouble starts when a second gateway runs with the same bot credentials. It does not matter that it uses a different port. Each instance still opens its own connection to the chat platform. On Discord and Slack, both can receive the same message event and both can answer. On Telegram, two pollers usually fight over updates, but a webhook plus a poller can still deliver the same message twice.
The second layer is inbound delivery. When messages arrive while the agent is busy, OpenClaw queues them and processes them together. Older releases had bugs where a queued batch was delivered once per queued message, so a batch of three produced three runs. The 2026.10.2 release specifically addresses missing or repeated replies.
The third layer is streaming. OpenClaw has block streaming, which sends completed chunks as normal messages, and preview streaming, which updates a temporary message and then finalizes it. If both paths run, or if a preview is never replaced, the reader sees the same content twice. Exact duplicate final payloads are suppressed, but text that differs around media can still produce a second send.
The fourth layer is the agent itself. If it calls the message tool to send an update, then finishes with a normal reply, the channel receives both. That is not a bug in the gateway. It is two intentional sends.
How to Confirm Which Cause You Have
Work through these checks in order. Stop when the symptom matches.
- Classify the duplicate. Exact same text points to a resend, a retry, or two instances. A short progress line followed by the full answer points to streaming. Two slightly different answers point to two agents or two handlers processing the same event.
- Check the gateway view. Run
openclaw gateway status. Read theListening:line and compareConfig (cli)withConfig (service). If they point at different files or profiles, you may have one gateway started from your shell and another started as a service. - Look for a second process. On macOS run
launchctl list | grep -i openclaw. On Linux runsystemctl --user list-units --type=service | grep -i openclaw. Then runps aux | grep -i "openclaw gateway" | grep -v grep. Two PIDs means two gateways. - Check channel accounts. Run
openclaw channels status --probe. Look for the same bot account connected under two account names, or two accounts for the same provider that you did not intentionally create. - Watch the logs while you reproduce it. Run
openclaw logs --follow, then send one message. More than onestarting accountline,Slow listener detected,stuck session, or[Queued messages while agent was busy]tells you which layer is repeating the work. - Test with streaming off. Set
agents.defaults.blockStreamingDefaultto"off", restart the gateway, and send a long prompt. If the duplicate disappears, the cause is streaming, not delivery.
The Fix, From Simplest to Most Involved
Level 1: Make Sure Only One Gateway Owns the Bot Token
This is the free fix, and it resolves most duplicates. Confirm you have one listener, then remove the extra instance.
openclaw gateway status
openclaw gateway stop
openclaw --profile <extra-profile> gateway stop
If Config (cli) and Config (service) disagree, reinstall the service from the profile you actually want to run:
openclaw gateway install --force
If you run two gateways on purpose, such as a rescue bot, give each one its own bot token. Never share a token between profiles. Then verify with openclaw channels status --probe and send a test message. You should see one reply and one account startup line in the logs.
Level 2: Stop Duplicate Inbound Delivery
If you are not on 2026.10.2 or later, upgrade first. That release fixes missing or repeated replies, including a case where background work caused the final answer to be produced twice.
openclaw --version
openclaw update
The queued-message bug is worth understanding even after you upgrade. When several messages arrive while the agent is busy, they are grouped and processed as a batch. In older builds, the batch could be delivered once per message, so three quick messages produced three responses. If you cannot upgrade yet, send one message at a time and wait for the reply before sending the next. On 2026.10.2 and later, /stop also clears queued follow-ups, so waiting messages do not restart the run.
Release notes and install options are at openclaw.ai. Check the version before you change anything else, because a large share of duplicate reports disappear after the upgrade.
Level 3: Fix Streaming and Final Reply Overlap
If the duplicate looks like a preview or a partial answer followed by the full one, turn off block streaming for that channel. The global default is already off, but a per-channel override or an old config can turn it on.
{
"agents": {
"defaults": {
"blockStreamingDefault": "off",
"blockStreamingBreak": "message_end"
}
},
"channels": {
"discord": {
"streaming": {
"block": {
"enabled": false
}
}
}
}
}
Use message_end if you want block streaming but only want it to flush when the assistant finishes. That prevents a partial chunk from going out while the model is still working. If you have legacy flat keys such as blockStreaming or chunkMode, run openclaw doctor --fix to migrate them, then restart the gateway.
Be honest about the limit here: turning off streaming removes duplicate previews, but it will not fix two gateways or a queued batch. If the duplicate survives this change, go back to the process checks in Level 1.
Level 4: Stop the Agent From Sending Twice
If the duplicate only happens when the agent gives progress updates, the agent is probably using the message tool and then replying normally. Pick one path. The cleanest instruction is: when you send with the message tool, finish the turn with NO_REPLY so the automatic reply does not fire.
Also check for automation overlap. Two cron jobs doing the same task, or a cron job plus a heartbeat check, will both send. Run openclaw cron list and look for jobs with the same schedule or the same target. Then run openclaw cron runs <jobId> to see whether a failed run was retried after it had already sent. If retries are the cause, make the send idempotent: store the event ID or job run ID in a small state file and check it before sending again.
One more loop to rule out: bot-to-bot conversations. If another bot is in the room, OpenClaw can accept its messages by default. Set channels.discord.allowBots to "mentions" or false, and keep the built-in bot loop protection enabled. The defaults allow 20 events per 60 seconds before suppressing the pair, which is generous for a real workflow and too generous for two bots politely thanking each other.
Level 5: Hand the Ops Layer to a Managed Host
If duplicates keep coming back because you are running OpenClaw across a laptop, a mini PC, and a VPS, the problem is operational, not conversational. Every extra machine is another chance to run a second copy with the same token.
ClawTrust runs OpenClaw for you as a managed service. You get one managed instance per agent, health checks every 15 minutes, auto-remediation, and monitoring, so a crashed or duplicated process gets handled instead of waiting for you to notice. Plans start at $29 per month for Lite, $79 per month for Starter with web browsing and higher limits, and $159 per month for Pro with Python and a $10 monthly AI credit. There is a 5-day free trial.
To be clear: this does not fix a prompt that sends twice. It fixes the infrastructure layer where two instances, stale configs, and unmonitored restarts cause the duplicate in the first place. Do Levels 1 through 3 first. If you have already done them and the problem returns whenever you change machines, managed hosting is the more honest fix.
Stop chasing duplicate replies
When It’s Worth Paying
The free fixes cover most people. If you run one agent on one machine, Level 1 and Level 2 will usually end the duplicates for good. Paying for managed hosting only makes sense when the cost of a duplicate is higher than the subscription.
That is true in three cases. First, the channel is customer-facing and a double reply makes your business look careless. Second, you run more than one machine or more than one channel, so the same misconfiguration keeps reappearing. Third, you are the only operator, and an hour of debugging at 2am is worth more than $29 a month.
A managed plan also caps the downside. ClawTrust includes a hard monthly AI budget cap, so a runaway retry loop cannot turn into a surprise bill. If you only need the free path, take it. If you have fixed the same duplicate three times and it keeps coming back, the plumbing is the problem, and renting someone else’s plumbing is a reasonable decision.
The most common cause is two gateways connected with the same bot token. Both receive the same message event and both answer. Run openclaw gateway status, look for a second process, and stop the extra instance. If only one gateway is running, upgrade to 2026.10.2 or later, because older releases could deliver queued messages more than once.
Sometimes, but not reliably. A restart clears a stuck session, yet it can also preserve and retry an uncertain send, which produces another copy. Check the logs before and after the restart. If the duplicate returns as soon as the agent gets busy, the cause is inbound delivery or streaming, not a stale process.
That is streaming overlap. A block or preview message goes out while the model is still working, then the final answer is sent as a new message. Set agents.defaults.blockStreamingDefault to off, or set blockStreamingBreak to message_end, then restart the gateway. If you use per-channel overrides, disable streaming.block.enabled for that channel.
No. Two pollers compete for the same updates, and a webhook plus a poller can deliver the same message twice. Give each gateway its own bot token and its own profile. The same rule applies to Discord and Slack, even though those platforms may allow two connections without an obvious error.
The agent is probably using the message tool and the normal reply path in the same turn. Tell it to send with the message tool and then finish with NO_REPLY, or remove the tool send and let the normal reply handle it. Also check for two cron jobs or a cron job plus a heartbeat doing the same task.
Final Thoughts: Do This First
You can diagnose this in the next ten minutes without buying anything.
- Run
openclaw gateway statusandps aux | grep -i "openclaw gateway" | grep -v grep. If there are two processes, stop the extra one and give each profile its own bot token. - Run
openclaw --version. If it is older than 2026.10.2, upgrade, then send three messages in a row and count the replies. - If the duplicate is a partial answer plus a full answer, turn off block streaming and restart the gateway. If it is two full answers from one process, check the message tool and the automatic reply path.
If the problem keeps returning after all three, read how to monitor an OpenClaw agent so you catch the second instance before a customer does. For scheduled sends, this guide to OpenClaw cron jobs that never fire covers the other half of the retry problem, and the OpenClaw upgrade playbook helps you update without creating a config mismatch.
This post contains affiliate links. If you buy through them, I may earn a small commission at no extra cost to you.

