mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
Native opencode sends prompt_cache_key (session-sliced ID), plus safety_identifier, store, and service_tier. The translator dropped all four, so proxied turns never rode prompt-cache affinity while native did. Decode, carry, and re-emit on both Chat and Responses paths, omit-when-absent. Verified live: same-session turns hit 99% cached upstream after warm-up.