Forumics logo Forumics
Issue 01

Back to issue

All Cline known issues

CLAIM C176 Supported 2026-11-22

GitHub issue #13667 in cline/cline, opened 2026-08-28 by markbastiaans, records a report that requests sent through the litellm and openai-compatible providers to an Anthropic model on AWS Bedrock never include cache_control on any message content block, so Anthropic prompt caching never activates and cacheReadTokens and cacheWriteTokens are 0 on every request, regardless of context size, provider, or model; the report traces this to a single gate that checks provider.metadata promptCacheStrategy for anthropic-automatic before attaching cache_control, a field the litellm and openai-compatible provider entries lack, and notes a liteLlmUsePromptCache boolean in the LiteLLM provider settings schema that has no UI toggle and is never read outside its serialization code, so setting it to true directly in the settings file had no effect on live requests.

Verbatim Excerpts from Cited Records
“Requests sent through the `litellm` and `openai-compatible` providers to an Anthropic model on AWS Bedrock never include `cache_control` on any message content block, so Anthropic prompt caching never activates — `cacheReadTokens`/`cacheWriteTokens` are 0 on every request, regardless of context size, provider, or model.”
— markbastiaans · cline/cline (issue 13667 opening body, What happened? section) · 2026-08-28T13:09:11Z ·GitHub Issue ↗
“Traced this to `dist/extension.js` (minified, so function names are mangled — described structurally below): every code path that would attach `cache_control` to message content goes through a single gate that checks `provider.metadata?.promptCacheStrategy === "anthropic-automatic"` before doing anything else.”
— markbastiaans · cline/cline (issue 13667 opening body, What happened? section) · 2026-08-28T13:09:11Z ·GitHub Issue ↗
“If that's not `"anthropic-automatic"`, the function returns immediately and no `cache_control` is ever built.”
— markbastiaans · cline/cline (issue 13667 opening body, What happened? section) · 2026-08-28T13:09:11Z ·GitHub Issue ↗
“We also found a `liteLlmUsePromptCache` boolean in the LiteLLM provider's settings schema (serialized via protobuf encode/decode/toJSON/fromPartial) that has **no UI toggle** and, as far as we could trace, is **never read** anywhere outside that serialization code — setting it to `true` directly in `~/.cline/data/settings/providers.json` had no effect on live requests.”
— markbastiaans · cline/cline (issue 13667 opening body, What happened? section) · 2026-08-28T13:09:11Z ·GitHub Issue ↗
Counter-record: Issue open as of the fetch; 4 comments were read. linear-code[bot] linked the thread to CLINE-3108. yiaany (2026-08-29) offered to work on it and asked a maintainer to confirm CLINE-3108 is open for an external contribution and that no internal implementation is already in progress, proposing regression coverage plus wiring capability detection and cache_control emission. TomHellier (2026-10-29) wrote that #14332 does fix this problem, without further detail in the surveyed thread. wkia (2026-11-21) reported the report still true on 4.1.26 with the LiteLLM provider through a LiteLLM gateway in front of Vertex AI: two planning tasks (22 and 16 requests, prompts up to 137k tokens) with cache counters 0 on every request and billing at the full input price (one 135,378-token request billed at 2 dollars per million tokens while a cache read costs 0.10 dollars per million); the stored model info has supportsPromptCache true from the gateway model info but no marker is sent. The same commenter showed LiteLLM itself can add the marker via cache_control_injection_points, cutting a 25.5k-token prompt from 0.051 dollars to 0.0026 dollars on repeat requests, while noting cache hits on a growing prompt were not always reliable and that this only helps people behind LiteLLM. No maintainer response or merged fix appears in the surveyed thread. The claim documents only the original report, not a verified current state. Falsification probe: If GitHub issue #13667 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.