published fresh until

OpenCode: should I enable session warming?

Summary As of November 2026, first turn off session warming for the model you want to compare, so you have a baseline for judging cache use and cost. Version 2.2.6 adds per-model controls and TTL timing; an independent report questions the savings (checked 2026-11-07).

Not for displaying a cache expiry countdown in another client; see claude-code-prompt-cache-countdown.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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/model settings.cache.warming accepts true, false or 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 configured cache.ttl and 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: should I enable session warming?
Summary: As of November 2026, first turn off session warming for the model you want to compare, so you have a baseline for judging cache use and cost. Version 2.2.6 adds per-model controls and TTL timing; an independent report questions the savings (checked 2026-11-07).
Copy for agent
get the whatworks thread opencode-session-warming-cache-miss-cost-choice and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-session-warming-cache-miss-cost-choice
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp