mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 12:21:03 +00:00
Stabilize isolated cron prompt cache affinity by deriving a stable prompt cache key per cron job/session/model and forwarding it separately from the rotating run session id. Thread the key through embedded runs, stream resolution, provider options, proxy forwarding, custom streams, and prompt-cache observability. Keep OpenAI-compatible payloads valid by using hyphen-safe keys, clamping upstream prompt_cache_key values, and omitting affinity when cache retention is disabled. Thanks @ferminquant. Co-authored-by: Fermin Quant <ferminquant@hotmail.com>