Dynamic Context and Recall Limits

Every reply is written from a prompt: the character, the mode, your persona and instructions, looked-up lore and memories, the summaries, and the most recent messages. A model can only read so much at once (its context window). These settings decide what happens when the story outgrows it.

Nothing is cut to fit unless you turn on Dynamic Context. With it off, everything you've set goes out whole. If that's too long for the model, the turn is refused before the model is called, with what to change, and nothing is charged. With it on, the oldest messages and looked-up extras give way first, so the reply still gets written.

Where to find it

Step by step

Turn on Dynamic Context for one story

  1. Open the story's Context settings (see above).
  2. Under Context Settings, switch on Dynamic Context.
  3. Optionally set a Dynamic Context Budget to keep each turn smaller (and cheaper).
  4. Save. The change applies from the next message.

The setting is marked as set for this story; every other story keeps your default.

Limit how much room lore or memories take

  1. In the same dialog, find Limit Lorebook Search (under Knowledge (Lorebook)) or Limit Memory Recall (under Memory).
  2. Pick By count, By token budget, or By count and token budget (whichever runs out first).
  3. Set the Token Budget for that part.
  4. Save.

Use the context-fit hint

When a story's settings don't suit its model, the top of the Context Settings dialog suggests values for Max context messages, Summarize per batch and Summaries before rollup.

  1. Read the suggestion.
  2. Click Apply to this chat to use them for this story.

The hint is sized from the model's window, not from cost. On a large model, applying it makes every turn carry more, and on a built-in model every token in the prompt is billed on every turn. A warning version appears when the always-sent part of the prompt alone is too big for the model.

The settings

Setting Default What it does
Max Context Messages 50 (2–200) How many recent messages a turn carries. With Dynamic Context on it becomes a ceiling: a turn reads up to this many and keeps as many as fit. To let a big model carry more of the story, raise it too.
Dynamic Context Off On: the model's window decides how much history is kept. The oldest messages give way first, then remembered facts, recalled memories, searched lore, the journal, the cast and finally the summaries. Summaries start from wherever that lands, so nothing falls between them.
Dynamic Context Budget 0 (all of the window) A token ceiling, 2,000–200,000, for the parts that can give way. It only ever lowers the budget, never raises it past the model. Applies only with Dynamic Context on.
Always-On Prompt Share 0.8 (0.2–0.9) With Dynamic Context on, and only when a turn's prompt doesn't fit: how much of the room the always-on part keeps before looked-up lore, memories, facts, journal, cast and summaries give way to older messages. Raise it when the world matters more than how far back the AI remembers.
Limit Lorebook Search / Limit Memory Recall By count Whether recall is held by a number of entries, a token budget, or both.
Token Budget 0 (no limit) The room recall may take. The top-ranked entry or memory is always kept, even if it alone is bigger. Always-include lorebook entries are never counted or trimmed.

Never shortened, on or off: the character, the mode, your persona, your instructions and always-include lore. A prompt made too long by those alone is refused, with what to change.

When a turn doesn't fit

Dynamic Context off. The reply allowance shrinks first, but never below a minimum (or your Max tokens, if lower). If even that won't fit, you see:

This conversation doesn't fit the model's context window, so no reply was written. Turn on Dynamic Context, choose a model with a larger context, include fewer messages, or shorten your persona, custom instructions, or Author's Note.

No reply is written or charged. The notice offers the same Open context settings and Choose a model buttons as below, and on the chat site they open right there in the writing panel.

Dynamic Context on. Trimming the oldest messages is the setting doing its job, and nothing is said about it. You only see a notice above the message box when the always-sent part crowds the history out:

The reply still went through. The notice offers Open context settings (raise your budget, or shorten what's always sent) and Choose a model (one with a larger context; Choose a Beat model or Choose a Prose model in a Hybrid story). When your own Dynamic Context Budget is what held the reply back, Choose a model is greyed out and says why: a bigger model wouldn't help, so raise your budget instead. A button that can't be used on a story is always shown greyed out with its reason, never left out. On the chat site both buttons open the writing panel on the same screen, and the line you were writing waits in the message box. It goes away with your next message, or when you close it with its ✕. In a Hybrid story it names the Beat model (which plans the turn) or the Prose model (which writes it).

Cost

Dynamic Context lets a large model carry more of the story on every turn. On a built-in model every prompt token is billed on every message, so a large window with a high Max Context Messages costs more per reply. Set a Dynamic Context Budget to cap it.