You ask for a plan, a summary, or a long explanation. The agent starts writing, then stops mid-sentence. Or the reply bubble arrives completely empty. Or the first half lands in Telegram and the rest never shows up at all.
That is one of the most common OpenClaw complaints, and it almost never means the agent is broken. Something in the chain ran out of room: the model hit its output cap, the chat channel hit a character limit, or the context was compacted badly and the agent lost the thread.
What makes it frustrating is how quiet the failure is. No error, no warning, just an answer that ends too early. Most advice says to restart the gateway. That fixes maybe one cause out of four.
Below is how to identify which limit you are hitting, and the exact fix for each one.
The Short Answer
OpenClaw replies get cut off because of one of four limits: the model’s output token cap, the chat channel’s character limit, a bad compaction summary when the context window fills, or a provider that ignores your maxTokens setting.
Check the cut point first. A reply that stops mid-sentence at roughly 4,096 characters is a Telegram limit. A reply that stops at roughly 2,000 characters is Discord. A reply that stops at a random but consistent length, with no notice, is the model’s output cap. A reply that was fine for an hour and then turned short and vague is context compaction.
Why This Happens
Four causes, in the order they usually bite.
1. The model hit its output token cap
Every model has a maximum number of tokens it can generate in one response. When the response reaches that cap, the provider returns a stop reason of “length”. The text so far is valid, it just stops.
Older OpenClaw builds handled that badly. A token-limited reply that contained visible text was classified as an incomplete turn and replaced with the warning “Agent couldn’t generate a response”, so the useful half of the answer was thrown away. OpenClaw fixed this in PR #123546: partial text is now delivered with a truncation notice and the turn stays replayable. If your install predates that fix, you are still losing partial answers.
2. The chat channel has a character limit
Telegram caps a bot message at 4,096 characters. Discord caps a message at 2,000. Neither cares how good the answer is. A 2,000-word response cannot fit in one Telegram message, and a 700-word response cannot fit in one Discord message.
Depending on the build, long replies were silently truncated or dropped entirely. OpenClaw issues #57746 and #67396 both document long messages being cut at the 4,096 character line with no split and no warning. The web UI has no such limit, which is why the same prompt often works there.
3. Context compaction mangled the summary
When a session gets long, OpenClaw compacts older turns into a summary so the conversation can continue. The summarizer is a model call with its own output cap. If the summary stops at that cap, issue #127987 describes the partial summary being committed as complete. The tail of the summary is usually “Next Steps” and “Critical Context”, which is exactly the part the agent needs after compaction.
The symptom is subtle: the agent does not go silent, it just loses the thread and gives you a short, vague answer that feels unrelated to what you were doing.
4. The provider ignored your maxTokens setting
Model parameters are passed through to the provider, and some providers do not honor them. OpenClaw issue #25794 documents maxTokens being ignored with OpenRouter, where the call fell back to a hard 4,096 output token limit. Reasoning models add another wrinkle: thinking tokens draw from the same output budget, so a model can spend most of its allowance thinking and return very little visible text, or none at all.
How to Confirm Which One Is Yours
Run these checks in order. Stop as soon as one matches.
- Check your version. Run
openclaw --version. Any build without the partial-reply delivery fix will discard token-limited answers instead of showing them. - Watch the log while you reproduce it. Run
openclaw logs --follow, then send the same prompt again. Look forstopReason: "length",incomplete,truncat, or the “Agent couldn’t generate a response” warning. - Test the same prompt in the web UI. If the Control UI returns the full answer and the chat channel does not, the channel is the problem. The model is fine.
- Count the cut. Copy the reply into a character counter. Stopping near 4,096 means Telegram. Near 2,000 means Discord. A different, consistent number means the model’s output cap.
- Check the model and its limits. Run
openclaw models status, thenopenclaw config get agents.defaults.models. Confirm the model name, its context window, and whether maxTokens is set at all. - Check context usage. Run
/statusin the session. If usage is near the window limit, run/compactor start a fresh session with/new, then repeat the prompt. If the problem disappears, compaction was the cause.
Fix 1: Update OpenClaw So Partial Replies Arrive
This is the free fix that solves the most confusing version of the problem: the answer exists, but OpenClaw throws it away.
The change merged in PR #123546 treats a length stop differently from a pending tool call. If the model produced visible text, that text is delivered with a truncation notice. The turn is recorded as a successful partial reply, so “continue” can pick up from what you actually got instead of restarting the task.
Update to the latest release, restart the gateway, and reproduce the failure. If you now get the first part of the answer plus a notice, the runtime is behaving correctly and you only need to raise the budget in Fix 2. Official install and upgrade instructions are at openclaw.ai. If an upgrade breaks your config instead, the OpenClaw upgrade playbook covers rollback and redacted secrets.
Fix 2: Give the Model Enough Output Budget
If the reply now arrives with a truncation notice, the cap is doing its job. Raise it.
Set maxTokens on the model entry in ~/.openclaw/openclaw.json. Keep it below the model’s context window and leave headroom for the prompt:
{
"agents": {
"defaults": {
"models": {
"deepseek/deepseek-v4-pro": {
"params": { "maxTokens": 16000 }
}
}
}
}
}
Two things to know before you raise it. A higher cap is not a charge by itself, you only pay for tokens actually generated. But long answers do cost more, so set a number that matches the work: 8,000 for chat, 16,000 for drafts and analysis, more only for deliberate long-form jobs.
If you use a reasoning model, remember that thinking tokens come out of the same budget. On a 4,096 cap, a hard question can consume the entire allowance before any visible text is produced, which looks like an empty reply. Raise the cap or lower the reasoning level for routine tasks. Model fallbacks matter here too, because a provider that ignores maxTokens will keep cutting you off no matter what you set.
If the answer is simply long, ask for it in parts
No cap will make a 3,000-word guide fit in one Telegram message. Ask for an outline first, then one section per message. It works better than a wall of text and it keeps every part inside the channel limit. The same discipline helps when the agent gets slow and vague in long sessions, which is usually context overflow rather than a token cap.
Fix 3: Stop Channel Limits From Eating the End
Once the model is producing full answers, the delivery layer becomes the limit.
- Telegram: keep replies under about 3,500 characters to leave room for formatting. If you need more, ask the agent to split the answer into numbered parts.
- Discord: keep replies under about 1,800 characters. Discord’s 2,000 character cap includes markdown, so long code blocks get cut first.
- Long documents: send a file instead of a message. Ask the agent to write the output to a file and deliver it as an attachment.
- Streaming: block streaming can make long replies arrive in chunks, but it does not raise the per-message character limit. It only changes how the text is displayed.
Test in the web UI first when you are unsure. If the full answer appears there, you have a delivery limit, not a model limit, and no amount of maxTokens tuning will fix it.
Fix 4: Clean Up Context Before Compaction Mangles It
If replies turn short and vague after a long session, the problem is the context window, not the output cap.
Run /compact before the session is forced to compact on its own, and start a new session with /new when you switch tasks. A fresh session with a tight prompt beats a 200-turn transcript every time.
Also check what gets injected into every turn. Bootstrap files have per-file and total character caps, and a large MEMORY.md or AGENTS.md can eat a surprising share of the window before you type anything. Trimming those files leaves more room for the actual conversation.
If compaction keeps losing the tail of the summary, do not rely on it for critical instructions. Put the must-keep facts in MEMORY.md or a task file, so they survive a compaction instead of depending on a summary that may have been cut off.
When It’s Worth Paying
Everything above is free, and for a single user on a decent model it is usually enough. Paying makes sense when the agent is doing paid work and the failure costs money: client deliverables, scheduled publishing, support replies.
The honest trade is time. If you are spending an hour a week chasing config drift, version regressions, and provider quirks across a machine that has to stay online, a managed platform removes that maintenance. ClawTrust.ai runs the agent for you, including the model routing and restarts, so the output limits are their problem instead of your evening. It is worth it if the agent earns its keep. If it is a hobby, the four fixes above are enough.
One thing that will not fix truncation: faster hosting. This is an output and delivery limit, not a page speed problem, so do not change hosts hoping for longer replies.
FAQ
That warning means the turn was classified as incomplete. In older builds, a reply that hit the output token cap was discarded even when it contained useful text. Updating OpenClaw delivers the partial text with a truncation notice. If the warning still appears after updating, check the log for a stop reason of error, which means the provider call failed rather than the model running out of room.
Thinking tokens count against the same output budget as visible text. With a low maxTokens value, the model can use the entire allowance on reasoning and return nothing you can read. Raise maxTokens or lower the reasoning level for routine tasks.
It depends on the channel and the build. Discord messages are split at the 2,000 character limit. Telegram has historically truncated or dropped messages over 4,096 characters rather than splitting them, which is tracked in issues #57746 and #67396. Keep replies short or deliver long output as a file.
The cap itself costs nothing. You pay for tokens actually generated, so a high cap only costs more when the model genuinely writes more. Set the cap to match the task and watch usage if you run long jobs.
Only when context or compaction is the cause. A new session clears the context window, so vague or short replies after a long conversation usually improve. It will not help if the reply is being cut by a channel character limit or a model output cap.
Final Thoughts: Do This First
- Update OpenClaw and restart the gateway, then reproduce the failure once.
- Set maxTokens to 8,000 for chat or 16,000 for drafts, and check the log for a length stop.
- Test the same prompt in the web UI and in your chat channel. If only the channel cuts it, keep replies under the limit or send a file.
If the problem comes back every week, stop tuning and move the agent to a managed platform. Reliability is worth more than another config file.
Truncated replies that keep coming back are usually a platform problem, not a settings problem. Compare the four main personal agent platforms on reliability and cost before you switch.
See Our ComparisonThis post contains affiliate links. If you buy through them, I may earn a small commission at no extra cost to you.

