Artifact c61506b79124118bbb71dfb7752cacb7ac74427a8f070181cac596b9a0518432:
- File
src/import_pi.c
-
2026-11-20 00:08:59
— part of check-in
[0cc6f109a2]
on branch images
— 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. (user: dmestas, size: 10986) [annotate] [blame] [check-ins using]
- 2026-11-20 00:37:10 — part of check-in [2a29f15311] on branch cache — Merge images into prompt caching (user: dmestas, size: 10986) [annotate] [blame] [check-ins using]
- 2026-11-20 00:59:37 — part of check-in [6432af2cbc] on branch trunk — CI green on 76939caa663b; Fil-C pass (215); reviewed twice (user: dmestas, size: 10986) [annotate] [blame] [check-ins using]
-
2026-11-20 02:17:08
— part of check-in
[1e0a50a3c5]
on branch gemini
— Merge trunk into Gemini; the catalog includes Google's models
src/model_catalog.inc regenerated from pi.dev with google-generative-ai: 679 models, each with input types and prices. (user: dmestas, size: 10986) [annotate] [blame] [check-ins using]
- 2026-11-20 02:28:00 — part of check-in [f7b1bab2f5] on branch highlight — Merge trunk into the syntax highlighter (user: dmestas, size: 10986) [annotate] [blame] [check-ins using]
- 2026-11-20 11:17:07 — part of check-in [fa1d0f1004] on branch tui-round-3 — Merge trunk into tui-round-3: images, caching, costs, Gemini, hooks seam; pic_bash kept at journal v10 (user: dmestas, size: 10986) [annotate] [blame] [check-ins using]
-
2026-11-20 00:08:59
— part of check-in
[0cc6f109a2]
on branch images
— Images: validate at entry, cap per request, prune by retention