Currently if you generate images using Kagi Assistant (I personally don't really use it or care for it, but figured this FR is still useful for those people) the images expire very quicly because kagi doesn't actually save the images itself, only via the image proxy.
I think it would be good if the images were kept for the duration of the thread's lifespan. If the thread gets deleted or expires (using the thread expiry setting), then it can delete the image of course.
But def because it takes so many resources to generate those images, if you forgot to download them, you'd have to generate them again.
--
The same is relevant for Ki generated graphs and such. Those are just very low size png's so those def should be saved. also because the code environment expires and that's even more of a mess to spin back up to generate the graphs again.
Currently they both just:
Generated images expire after 10 minutes.