Skip to content
pi-c Check-in [2a29f15311]
Login

Check-in [2a29f15311]

Overview
Comment:Merge images into prompt caching
Timelines: family | ancestors | descendants | both | cache
Files: files | file ages | folders
SHA3-256: 2a29f153118ef066a77b4fe9217f2652aab4faccde8b4cd7564b67c063e2f43b
User & Date: dmestas on 2026-11-20 00:37:10.869
Other Links: branch diff | manifest | tags
Context
2026-11-20
01:03
Merge trunk (images, costs) into prompt caching check-in: ebc4b0e75a user: dmestas tags: cache
00:37
Merge images into prompt caching check-in: 2a29f15311 user: dmestas tags: cache
00:29
Prompt caching on every provider, as Pi's

Anthropic: cache_control on the system block, the last tool and the last block of the final user message; 5 minutes by default, ttl 1h with cacheRetention=long, none with cacheRetention=none (setting in pic.sqlite, PI_CACHE_RETENTION as fallback). Anthropic models through OpenRouter get the same markers. OpenAI Responses and Chat Completions send prompt_cache_key (the conversation id) and 24h retention when long, as Pi does. The system prompt and tools stay byte-identical across turns, and 1-hour cache writes are kept in the stored usage. check-in: 376fd483ed user: dmestas tags: cache

00:29
Merge trunk (TUI round 2, live events) into images

Keeps both features where they met: tool-end events carry images and bash streams partial output; the tool hooks carry both. Fil-C builds image.c and prune.c and runs images.sh, which skips where there is no sqlite3 command (as migrate.sh does). check-in: d5076648a8 user: dmestas tags: images

Changes
Added src/prune.c version [f8ddde14e9].