{"version":"2.1.333","anchor":"resume-cache-warm-gating-reworked","canonical_anchor":"cache-warm-shadow-run-for-resumed-cloud-containers","heading":"Warming the prompt cache on resume is reworked and reaches more sessions","tier":"soon","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/resume-cache-warm-gating-reworked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Warming the prompt cache on resume is reworked and reaches more sessions\n\nCache warming when a session resumes gets new rules, limits and refusal reasons, can run outside the desktop app, and has a trial run in cloud containers\n\n**Unclear.** Whether `outsideDesktop` is set to on, shadow or neither for any account is decided remotely and is not known.\n\n**What**\n\nWhen you resume a session, Claude Code can send the conversation ahead of time so the prompt cache, a stored copy of earlier messages that makes later requests faster, is ready. How it decides to do this changed:\n\n- A new decision function returns no when `CLAUDE_CODE_RESUME_CACHE_WARM` is false, or when `CLAUDE_CODE_EXTRA_BODY`, `CLAUDE_CODE_REMOTE` or `CLAUDE_PROJECT_UUID` is set.\n\n- It reads an `outsideDesktop` setting with the values shadow or on, so it can apply to sessions outside the desktop app.\n\n- New refusal reasons cover a conversation that is too large, a chat inside a Project, and a hold while an idle summary is pending.\n\n- The warming request can end on the last reply and can skip writing the cache when a condition holds.\n\n- Its remotely delivered configuration gains `contextTokenLimits`, `percentPerMillionTokens`, `weeklyPercentPerMillionTokens`, `carriesLocalFiles` and `endsOnTheLastReply`. Before, it held only `holdMs`, `minRestMs`, `minContextTokens` and `longContextModels`. The old environment-variable exclusions in that configuration are dropped, while `CLAUDE_CODE_RESUME_CACHE_WARM` is still referenced. Nothing has been read about the switch `tengu_typing_cache_warm`.\n\n- A held upload now records why it was not sent, for example while waiting for cache warming.\n\n- In remote sessions, a new timer makes a trial decision after the session has rested, controlled by `tengu_noble_dove` with entry points, a minimum rest time and a minimum conversation size. It is skipped when `CLAUDE_CODE_RESUME_CACHE_WARM` is false or `CLAUDE_CODE_EXTRA_BODY` is set, and in this trial mode it sends nothing. Nothing has been read about `tengu_noble_dove`.\n\n**Why**\n\nResumed sessions, including ones in the terminal and in cloud containers, may now have their cache prepared ahead of time, within limits on conversation size and usage. Setting `CLAUDE_CODE_RESUME_CACHE_WARM` to false still turns this off.\n\n- Area: Sessions\n- Names: `outsideDesktop`\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}