Tags and Properties for Check-in 0cc6f109a2
- branch=images inherited from [c55dfbb163]
- ci-pass=fabefc54d1038b7c9a9be89d8c157357 added by [587ffae1a2] on 2026-11-20 00:16:00
- sym-images inherited from [c55dfbb163]
|
2026-11-20
| ||
| 00:16 | • Edit [0cc6f109a2]: Add "ci-pass" with value "fabefc54d1038b7c9a9be89d8c157357". artifact: 587ffae1a2 user: quarry | |
| 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 | |