Boris Cherny
af81c437fa
fix(cache): delay history image pruning to preserve prompt cache prefix ( #58038 )
...
pruneProcessedHistoryImages was stripping image blocks from every
already-answered user turn on each run. Turn N sends image bytes → provider
caches the prefix. Turn N+1 replaces image with text marker → bytes diverge
at that message → cache miss from there onward.
Now only prune images older than 3 assistant turns. Recent history stays
byte-identical so the cached prefix survives, while legacy sessions with
persisted image payloads still get cleaned up.
2026-04-03 17:22:58 -07:00
..
2026-04-04 00:11:39 +01:00
2026-04-03 17:22:58 -07:00
2026-04-04 09:00:16 +09:00
2026-04-04 00:11:54 +01:00
2026-04-04 00:28:25 +01:00
2026-04-04 01:20:34 +01:00
2026-04-04 00:11:39 +01:00
2026-04-03 21:12:56 +01:00
2026-04-04 00:10:16 +01:00
2026-04-03 19:53:38 +01:00
2026-04-04 00:10:16 +01:00
2026-04-04 08:17:11 +09:00
2026-04-04 00:10:16 +01:00
2026-04-04 04:26:51 +09:00
2026-04-03 17:16:33 -04:00
2026-04-03 20:21:44 -04:00
2026-04-04 08:17:11 +09:00
2026-04-04 00:11:39 +01:00
2026-04-04 00:11:39 +01:00
2026-04-04 00:10:16 +01:00
2026-04-02 19:09:39 +01:00
2026-04-03 14:51:24 +05:30
2026-04-04 00:24:57 +01:00
2026-04-04 01:10:49 +01:00
2026-04-04 00:11:39 +01:00
2026-04-04 00:11:39 +01:00
2026-04-04 02:36:48 +09:00
2026-04-04 00:10:16 +01:00
2026-04-04 00:11:39 +01:00
2026-04-04 00:10:16 +01:00
2026-04-03 17:35:26 +09:00
2026-04-03 22:22:51 +01:00
2026-04-04 00:11:39 +01:00
2026-04-04 00:11:54 +01:00
2026-04-03 19:49:43 +01:00
2026-04-03 21:21:09 +09:00
2026-04-03 19:09:21 +01:00
2026-04-02 15:02:40 +01:00
2026-04-02 22:08:59 +09:00
2026-04-03 17:19:19 -07:00
2026-04-03 13:08:39 +01:00
2026-04-03 21:43:36 +01:00
2026-04-03 04:41:38 +01:00
2026-04-04 03:57:47 +09:00
2026-04-04 00:10:16 +01:00
2026-04-03 13:08:39 +01:00
2026-04-04 00:10:16 +01:00
2026-04-03 19:49:43 +01:00
2026-04-03 13:49:51 +01:00
2026-04-04 00:11:39 +01:00
2026-04-04 00:10:16 +01:00