Models and context
Symptoms
- the plugin reports
This model's maximum context length is X; - a long chat stops fitting into the context;
- an incorrect context size is shown for an OpenAI-compatible model;
- after long work the agent loses early details of the task.
What to check
- The plugin version: automatic compression requires 5.4.0 or later.
- The selected model and its actual context size.
- Whether automatic chat compression is enabled.
- Whether several unrelated tasks are mixed in one chat.
Fix
On a maximum length error, trigger chat compression manually and enable automatic compression for later tasks. If an OpenAI-compatible model reports the wrong limit, set the context size manually in the model settings.
Create a new chat for a new unrelated task. Keep persistent information about the project in AGENTS.md, Rules, or Memory Bank, not only in a long message history.