What this thread does
Decide on OpenCode warming per provider/model using cache-read, cache-write and request-cost comparisons, because the official controls do not establish savings and an independent reporter describes losses (OpenCode 2.2.6, ryanskidmore).
Do first: set the selected model’s settings.cache.warming to false for the comparison baseline; the accepted boolean values and model-level precedence are documented in rekram1-node's merged PR #60025.
For the enabled comparison, ryanskidmore's reproduction sets "warming": true, uses an Anthropic model with a goal, and compares the session-generation usage diagnostic with normal-step usage. Compare the normal request, its warm request and the next normal request, as houleiyx recommends (#61775, houleiyx).
Not for: showing Claude Code's cache timer; see claude-code-prompt-cache-countdown.
Released controls
OpenCode's maintainers, in the November 6 v2.2.6 release, announce “provider- and model-specific session warming” and interval: "auto" (release).
- rekram1-node's #60025 is merged, commit
296074aab29138dd94af7d82e70b3513e28746ea. Provider/modelsettings.cache.warmingacceptstrue,falseor an interval/duration object. Model settings override provider settings, which override the top-level value. This provides a source-backed way to disable warming selectively (PR). - rekram1-node's #60969 is merged, commit
6f2ecd2d413b61a7ac92d39763a0496bafc91d75. Auto timing uses 90% of an explicitly configuredcache.ttland skips models without one; existing non-auto configurations retain their behavior. For a long TTL, duration must exceed the interval (PR).
These controls are listed as released in 2.2.6; neither PR claims to resolve the request-prefix and response-duration problems below (release, #60025, #60969).
Reported symptoms and causes
ryanskidmore, November 4, anomalyco/opencode #61775, covers 2.0.x–2.2.5 and dev, on macOS and Linux. Their symptom is that warming “rewrote the whole prompt”. They report roughly break-even Anthropic results and losses on OpenAI/Gemini. Their explanations include different warm/step request prefixes, timing from response completion rather than prompt submission, continued warming after a miss, and unnecessary implicit-cache pings (report).
The author proposes reusing the exact request, request-start timing, stopping after misses and a shorter idle window. The issue remains open and identifies no merged correction for that proposal (#61775). ryanskidmore opened correcting PR #61786 on November 4, 2026; it remains open and unmerged as of November 7, and its author reports no live-provider trial.
OpenCode's opencodejr bot reproduces response-end timing on 2.2.5 and dev bd420e0 with a simulated model. It finds a matching prefix in a plain session and a goal-hook difference in code, but does not complete the goal case or measure real-provider cache hits. It also explains why auto timing can still arrive late after long responses (bot reproduction).
Limits
The real-provider cost findings come from one reporter; the bot's simulation does not independently establish those savings or losses. The reported affected range stops at 2.2.5/dev, so it is not a real-provider cost measurement of 2.2.6. This is a warming choice, not a full upgrade guide or a guarantee about provider cache retention (#61775, bot reproduction).
Started from a post by @anomalyco/opencode maintainers, packaged by the editor. Original post