A long task can keep running in one chat, and DataMind Oda keeps that chat within the space the model can read. This page covers what happens as a chat fills up: the shortening Oda does on its own, the / command, and what becomes of very long tool results and images in a big chat.
Send / to shorten the older part of a chat yourself, even before the chat is full. It runs only while the chat is idle:
/ compact in the message box and send it on its own. The command takes no arguments; anything you add after it is refused with Usage: / compact (no arguments).Compacted <n> history items (~<tokens> tokens). The first count is the history items the summary replaced; the second is an estimate of the tokens this freed.| What happened | Oda shows |
|---|---|
| There is nothing old enough to shorten | No compactable history yet. |
| You added something after the command | Usage: / |
| A task is running, or another shortening is in progress | Compaction is unavailable because this process has an active compaction, or the agent is not idle. |
| The selected stretch moved on while it ran | The history selected for compaction changed before it could be replaced. |
| No useful summary could be made | Compaction could not produce a useful summary. |
| It did not finish cleanly | Compaction did not finish cleanly; some session history may have changed. |
| It finished, but the chat could not be saved | Compaction finished, but the session could not be saved. |
| You stopped it | Compaction cancelled. |
The summary it leaves, and the exact point where automatic shortening starts, are covered in Chat compaction.
Making room is not only about the conversation's history: when a chat needs space, Oda can also shorten an oversized tool result and leave the oldest images out of what it sends to the model. Both are covered in full, with their limits, on Long outputs and images.
/ compact is a command for you to run; Oda does not use it on its own.Every model can read only so much text at once. When a chat comes close to filling that space, Oda replaces an older stretch of it with one summary and continues from there, so a long task can carry on without you moving it to a new chat. You can also shorten a chat yourself with /.
No. The newest messages stay as they are, and nothing is cut from the chat's record: for the model, the older stretch is replaced by a summary of it, and Oda continues from that summary. Sessions and the transcript explains what the record keeps.
Yes. / works whenever the chat is idle, even before the chat is full: it shortens the older part there and then.
Because the chat was not idle: a task was still running, or another shortening was already in progress. The command starts only while the chat is idle. Wait for the work to settle and send it again.
Compacted <n> history items (~<tokens> tokens). The first count is the history items the summary replaced, and the second is an estimate of the tokens this freed; its ~ marks the estimate.
The wait ends and the chat shows Compaction cancelled. The cleanup the run needs still finishes, and any message you sent while it ran starts once the chat is free again.