Guide
Why AI cuts off its answer: output limits, a full context window and three ways to get the whole text

An AI answer that stops mid-sentence is almost never a sign the model gave up. It hit a limit: how much it may write in one reply, how much it can hold at once, how long the connection lasts, or how much fits in one message. Each limit has its own symptom and its own fix. Below: the four reasons in plain words, the real numbers, and three ways to get a long text whole, from a good “continue” to a file instead of a message.

The short answer
An AI chat stops writing halfway for one of four reasons. The reply reached the model's output limit, the maximum number of tokens it may produce at once. The conversation filled the context window, so older parts are squeezed to make room. The connection or the time allowed for one reply ran out. Or the text hit the size of a single chat message, and the app split it into several messages.
The fix depends on the reason, but three moves cover almost every case. Ask it to continue from an exact anchor. Ask for the text in parts, by a plan agreed in advance. Or ask for a file instead of a message: a document written section by section in the agent's workspace and sent to you whole. For anything longer than a few screens, the file is the most reliable route.
Four reasons an answer stops mid-sentence

A language model writes one piece of text at a time: it predicts the next token, adds it, and repeats. How that loop works is in What an LLM is: large language models in plain words, how they write, and which ones run in your agent. The loop itself has no natural end. Something has to stop it, and four things can.
1. The output limit
Every model has a ceiling on how many tokens it may write in one reply. Developers see it as a parameter called max tokens. When the model reaches it, generation stops wherever it is, even mid-word, and the service marks the reply with a reason: “max_tokens” in Anthropic's API, “length” in OpenAI's.
Two numbers matter here. The model's own ceiling, which is large: the current Claude models allow up to 128K tokens per reply, according to Anthropic's models overview in November 2026. And the ceiling set by the app you use, which is often much lower, because shorter replies are faster and cheaper to serve. When a chat app stops at a page or two every time, it is usually the second number.
2. A full context window
The context window is everything the model can see while it writes: its instructions, the conversation, the files it read and the reply itself. When a long conversation fills it, something has to give. A well-built agent summarises the older part and keeps going. A simple chat may start losing the beginning.
The symptom is different from the output limit. The reply does not break off; instead it forgets. The second half of the report contradicts the first, a name changes, the numbering starts again from one. If that is what you see, the fix is not “continue” but a shorter working set: a plan in a file, key facts in memory, a fresh session for a new task.
3. A dropped connection or a time limit
A long reply takes time, sometimes minutes. Somewhere between the model and your screen there is a network, a server and a timer. If the connection drops or the time allowed for one request runs out, you get whatever was written up to that moment. The text often ends cleanly at a line break, so it can look finished when it is not.
4. The size of one message
Messengers have their own ceilings. A Telegram message holds up to 4,096 characters, by the Telegram Bot API documentation, which is about 600–700 English words. Anything longer arrives as several messages, or as a file. Files are a much roomier format: a bot can send a document of up to 50 MB.
How to tell which limit you hit
A quick check saves a lot of retyping.
- The text ends mid-sentence or mid-word, and the conversation is short. That is the output limit or a dropped connection. Ask it to continue from the last words.
- The text ends neatly, but the plan promised ten sections and you got six. That is the output limit, a dropped connection or a timeout. The reply was cut off by the limit, the connection or the clock, not because the task was done.
- The text is complete, but later parts contradict earlier ones or forget details. That is the context window. Continuing will not help; move the plan and facts out of the conversation.
- The answer arrived in several messages. That is the message size. Nothing is lost, it just came in pieces; for a document you want to keep, ask for a file.
- The same request stops at the same length every time. That is a fixed ceiling in the app. Change the format: parts or a file.
Method 1. “Continue”, done properly
The simplest fix works more often than people expect. The model has the beginning of the text in its context, so it can carry on from where it stopped. The trick is to tell it exactly where that is.
A bare “continue” can make the model restart the section, repeat a paragraph or drop the numbering. A precise request removes the guesswork:
- Paste the last sentence it wrote and say “continue from here”.
- Add “do not repeat what is already written”.
- Add “keep the numbering and the format”: the next heading is 7, the table keeps its columns.
- If the cut came inside a table or a code block, ask it to start the block again from the last full row.
One more habit helps. Before a long piece, ask the model to put a short marker at the end, for example “END OF REPORT”. If the marker is missing, you know at a glance that the text is not finished.
Method 2. Ask in parts, by a plan
Long texts break less when they are not asked for in one go. First ask for the plan: a table of contents with section titles and a rough length for each. Agree on it. Then ask for the sections one or two at a time, by number.
This does three things at once. Each reply stays well under any output limit. You can correct the direction after the first section instead of after the whole report. And the plan becomes the anchor: “write section 4 of the plan, about 600 words, same tone as section 3” is a request the model reads only one way.
The same approach works for a book, a course or a long instruction. In AI for writing a book: a 19-chapter plan, the first scene and light edits that keep the author's voice our test agent built the chapter plan first and then wrote scene by scene, which is exactly this method at book scale.
Method 3. A file instead of a message
For a text longer than a few screens, a file is the most reliable route. Chat messages were built for conversation; a document was built for length.
An agent with its own workspace does not have to fit the whole text into one reply. On WAM Agents the agent works in an isolated container with a working folder. It can write a report into a file section by section, check the structure, fix the numbering, convert it to .docx or .pdf and send it to you as an ordinary Telegram message, the way files come and go in any chat. Long text in one reply stops being a question at all: the file grows across as many steps as the work needs.
What you get from this:
- The whole text in one piece, with headings, tables and numbering intact.
- A format you can open on any device, forward or print: .docx, .pdf, .md or plain .txt.
- A file that stays in the agent's working folder, so you can ask for version 2 with edits and it works from the same document.
- With Google connected, the same text as a Google Doc in your own Drive.
The request is simple: “Write it as a .docx file, not in the chat, and send me the file when it is done.” If you need to read the text right away, add “and give me a five-line summary in the chat”.
How WAM Agents handles long work
Long replies are where an agent differs from a chat window. A few things on WAM Agents are built specifically so that long work arrives whole.
- Every reply ends with a status. “Done” when the task is closed, “Waiting for you” when the agent needs your answer, “Back at …” when it will continue on its own (release notes, 23 October 2026). You see at a glance whether the text is finished, without reading to the end.
- Interrupted replies continue on their own. If the connection to Codex drops in the middle of a reply, the agent continues automatically (13 July 2026). Claude sessions wait for the real end of a long reply, so long tasks run to completion (25 June 2026).
- Large documents are read in parts. The agent reads a big PDF, DOCX or TXT section by section, so a long source does not have to fit into one pass.
- The window is visible and manageable. /context shows how full it is, /compact folds older history into a summary, /clear starts a fresh conversation.
- A bigger model when you need one. The default is DeepSeek, on every plan. On Pro you can connect your own Claude with /claude: the current Claude models work with a 1M-token window and a 128K-token reply ceiling. How to connect it is in Claude in Telegram: how to connect your own Claude subscription to your AI agent.
Habits that keep long texts whole
- Ask for the length you need, in numbers. “About 1,500 words” or “10 sections of about 300 words each” tells the model how to pace the text, and you can see right away if it stopped short.
- Ask for the plan first. One extra message saves rewriting half a report.
- Name the format at the start. “As a .docx file” at the beginning is cheaper than converting a long chat reply later.
- Keep one task per conversation. A report and an unrelated question in the same thread both compete for the context window. On WAM Agents each forum topic is its own session with its own window.
- Keep the facts outside the chat. Budgets, names and deadlines that must survive a long session go into memory: say “remember this”. How that works is in How AI agent memory works: what it remembers, where it keeps it, and how to make it forget.
- Turn off deep reasoning for long plain writing. On DeepSeek, reasoning is counted as output, so for a long, simple text /thinking off makes each step cheaper. When the reasoning mode helps and when it does not is in AI reasoning mode explained: what /thinking and /effort change in an answer and cost, tested on one sum.
What stays with you
What it costs
You pay in magnets () for the work the agent does, and the model counts both the tokens it reads and the tokens it writes. On the default DeepSeek Flash, 1 covers 20,000 tokens of text; on DeepSeek Pro, 1 covers 5,000. A 20-page document is roughly 10,000 words, so the writing itself, not counting the session's first reply, takes a couple of magnets on Flash.
The first reply of a new session reads the agent's whole setup and costs 3–4 ; after that, the setup is read from cache and continuing the conversation costs fractions of a magnet per reply. A file written in several passes is priced the same way: each pass is a reply of its own. Free gives 200 in the first month and 100 every month after, with no card. Pro costs $13.90 a month with 400 , or $1.39 for the first month if you subscribe within your first 7 days, and adds your own model: work on your own Claude or Codex is billed by that provider to your subscription. Details on the pricing page.
Messages worth copying
Continue from “[last sentence]”. Do not repeat what is written, keep the numbering and the format.
First give me the plan: section titles and roughly how many words each. I will confirm, then write it section by section.
Write it as a .docx file, not in the chat, and send me the file when it is done. Give me a five-line summary in the chat.
Put “END OF REPORT” on the last line so I can see the text is complete.
Ask your agent for the long text as a file and get it in one piece.
Try it with your own agent
Free, no card. The agent starts working in the chat straight away.
Create your AI agentQuestions
Why does ChatGPT stop writing in the middle of an answer?
Usually because it reached a limit: the maximum length of one reply, a full context window, or a time limit on the connection. The model did not lose the thread. Ask it to continue from the last words, or ask for the text in parts or as a file.
What is an output limit?
It is the ceiling on how many tokens a model may write in a single reply. Each model has one, and the app or service on top often sets its own, lower one. The current Claude models allow up to 128K tokens per reply through the API.
Is typing “continue” enough?
Often, yes. It works better with an anchor: paste the last sentence and say “continue from here, do not repeat, keep the numbering”. Then the second part joins the first without a gap or a repeat.
How do I get a really long text, like a 30-page report?
Ask for it as a file. An agent with its own workspace writes the document section by section into a file and sends you a .docx, .md or .pdf. The length of one chat message stops mattering.
Why does the AI forget the beginning of a long text?
That is the context window, not the output limit. In a very long conversation the older part is summarised to make room. Keep the plan and key facts in a file or in memory, and the agent can read them again at any step.
Does a long answer cost more?
The model is paid by tokens in and out, so a longer text costs a little more. On WAM Agents' default DeepSeek Flash, 1 covers 20,000 tokens, and the writing itself, not counting the session's first reply, takes a couple of magnets for a 20-page document.


