When a request misses the prompt cache, you can now ask why.
Pass diagnostics.previous_message_id on a Messages request and the API reports a cache_miss_reason that shows whether the model, system prompt, tools, or messages changed from the previous turn. It also reports how many tokens missed the cache, so finding the cause in a long prompt isn't guesswork.
It's in public beta. Send the cache-diagnosis-2026-04-07 header.

