tool-images ยท diff
git:20261004.4bb7222 to git:20261004.1dfa507
2 added, 1 removed. Audit A to A.
---
description: Tool-owned image persistence and provider projection
globs:
- "internal/agent/tool_images.go"
- "internal/session/tool_images.go"
- "internal/tools/fs/**/*"
- "internal/llm/**/*"
- - "external/httpserver/**/*image*"
+ - "external/httpserver/coddy_coddy.go"
+ - "external/httpserver/coddy_session_asset*.go"
- "external/gateway/telegram/pictures.go"
alwaysApply: false
---
# Tool images
- An image read by a tool stays `role:tool` through `ImageParts`; never turn it into a synthetic user message.
- Provider projection may combine images later, but persisted history retains tool ownership.
- Read a copied session asset only while its digest matches; never reread the original arbitrary path.
- Prompt and tool images share one selection policy, with newer images preferred.
- Non-multimodal models receive no image parts.
- Surfaces render `_meta.coddy.images`; there is no preview configuration switch.