11 check-ins related to "images"
|
2026-11-20
| ||
| 00:59 | CI green on 76939caa663b; Fil-C pass (215); reviewed twice check-in: 6432af2cbc user: dmestas tags: trunk | |
| 00:42 |
Merge trunk (costs) into images; the catalog keeps both input and cost
tools/model-catalog.sh writes each model's input types and prices; src/model_catalog.inc regenerated from pi.dev (653 models). closed check-in: 76939caa66 user: dmestas tags: images | |
| 00:37 | CI green on facfe0d2409e; Fil-C pass (213) check-in: d23959e47c user: dmestas tags: trunk | |
| 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 | |
| 00:22 |
Images: re-attaching a pruned image stores its bytes again
INSERT OR IGNORE kept a pruned row (data NULL) and pointed the new attachment at it, so the image was lost on arrival. An upsert restores the bytes when the stored row was pruned. check-in: 972511ccd2 user: dmestas tags: images | |
| 00:09 | CI green on 49befd80de6f; Fil-C pass (212) check-in: 8952c4ae13 user: dmestas tags: trunk | |
| 00:08 |
Images: validate at entry, cap per request, prune by retention
Every image is checked from its header (PNG IHDR with CRC, JPEG frame header, GIF screen, WebP) as Fossil sniffs types: an invalid header, a type that isn't the declared one, more than 8000 px a side or over 4.5 MB is refused; the stored type is the sniffed one, with width and height. RPC image errors are reported, never dropped. A request carries the newest 20 images up to 20 MB; older ones become Pi's placeholder. Image bytes are dropped once compacted away or after imageRetentionDays (default 30; 0 keeps them), leaving hash, type and size and an "[image removed]" placeholder; pic prune [--dry-run] runs it, and it also runs at open at most hourly. pic check re-hashes images. Imports keep images. Journal version 10. check-in: 0cc6f109a2 user: dmestas tags: images | |
|
2026-11-19
| ||
| 23:39 |
Images, as Pi's
User messages, steering and follow-ups, and tool results can carry images. Journal version 9 keeps their bytes in SQLite (pic_image, deduplicated by SHA3-256, deflated only when smaller) linked by pic_attachment, written in the same transaction as the entry; pic check covers them. Each adapter sends its native shape (Anthropic base64 blocks, Chat image_url data URLs, Responses input_image); a model whose catalog input lacks images gets Pi's placeholders. pic ask --image PATH, the RPC images field and the read tool on image files add them; the Pi and HTML exports include them. check-in: c55dfbb163 user: dmestas tags: images | |
| 22:33 | Merge trunk (TUI round 1) into steering closed check-in: 2a3594e860 user: dmestas tags: steering | |