Vivian Fang
7a18a5c528
Validate images before returning view_image output ( #37892 )
...
## What changed
- Decode image data in the `view_image` handler and return a clear error for invalid or unsupported input.
- Re-encode code-mode images as PNG pixel data while preserving original image bytes for direct tool calls.
- Cover code-mode PNG output and rejection of invalid image data.
GitOrigin-RevId: 0a00e595ab749c19eab866a22f6577b6627e19f1
2026-08-10 22:43:47 +00:00
..
2026-08-03 10:41:03 +00:00
2026-08-05 06:38:57 +00:00
2026-08-07 02:34:46 +00:00
2026-08-10 17:02:19 +00:00
2026-08-08 20:07:27 +00:00
2026-08-04 08:24:42 +00:00
2026-08-04 08:24:42 +00:00
2026-08-10 01:44:30 +00:00
2026-05-06 15:40:50 -07:00
2026-08-10 01:44:30 +00:00
2026-06-24 17:17:28 -07:00
2026-07-07 08:32:14 -07:00
2026-08-05 23:42:29 +00:00
2026-06-11 15:10:29 -07:00
2026-07-15 05:45:43 +00:00
2026-05-19 14:45:37 -07:00
2026-06-10 10:26:53 -07:00
2026-05-29 13:32:19 +02:00
2026-05-29 13:32:19 +02:00
2026-08-03 10:41:03 +00:00
2026-08-03 10:41:03 +00:00
2026-08-05 04:54:33 +00:00
2026-08-07 19:32:15 +00:00
2026-07-31 15:34:03 +00:00
2026-08-07 14:08:13 +00:00
2026-08-07 02:34:46 +00:00
2026-08-07 02:34:46 +00:00
2026-08-10 19:26:52 +00:00
2026-07-28 23:49:37 +00:00
2026-07-07 20:59:02 +00:00
2026-06-23 16:52:40 -07:00
2026-06-11 03:39:07 +00:00
2026-05-29 13:32:19 +02:00
2026-07-13 23:48:42 +00:00
2026-08-08 20:07:27 +00:00
2026-07-14 04:29:57 +00:00
2026-08-07 13:54:24 +00:00
2026-08-04 15:49:49 +00:00
2026-08-04 22:58:02 +00:00
2026-08-01 00:38:10 +00:00
2026-08-01 00:38:10 +00:00
2026-08-01 00:38:10 +00:00
2026-07-27 21:12:00 +00:00
2026-07-27 21:12:00 +00:00
2026-08-10 18:03:46 +00:00
2026-08-08 20:07:27 +00:00
2026-07-23 16:20:30 +00:00
2026-05-29 13:32:19 +02:00
2026-05-29 13:32:19 +02:00
2026-06-10 10:26:53 -07:00
2026-08-05 09:39:05 +00:00
2026-08-06 14:11:35 +00:00
2026-08-03 23:33:05 +00:00
2026-07-31 15:34:03 +00:00
2026-08-06 03:15:08 +00:00
2026-08-10 22:43:47 +00:00
2026-07-24 06:03:36 +00:00