Files
anomalyco_opencode/packages/core
Aiden Cline 472a0c998f feat(core): normalize tool and attachment images at settlement
Image resizing previously ran only inside the read tool, so plugin, MCP,
and codemode tools could persist unbounded inline base64 images that grow
every provider request body (see #36552).

- ToolRegistry.settleTool now normalizes image file content generically:
  a missing resizer keeps the original, an unresizable image is dropped
  and replaced with an omission note, mirroring V1 processor behavior.
- SessionV2.prompt normalizes image attachments at admission, resolving
  the Location-scoped Image service lazily so text-only prompts do not
  boot location services.
- read keeps its internal normalize call to bound the image persisted in
  its structured output.
2026-07-15 22:11:38 -05:00
..
2026-07-15 18:23:08 -05:00