Krish Chainani
7b8b17b97a
Support image references by file ID in inputs and tool outputs ( #45794 )
...
## What changed
- Accept `fileId` alongside the existing `url` form for app-server image inputs, and forward file references to the Responses API as `file_id`. Update generated schemas and client types.
- Preserve file references, image detail hints, and mixed inline/file image ordering through user-message events, thread history, and rollout migration. Retain file images when truncating tool output.
- Pass file references through image preparation without resolving them, while keeping resize-notice numbering correct. Omit them from unsupported TUI display and Guardian image context.
- Reject image-edit requests whose recent-image window includes a file reference, preventing selection of an older inline image instead.
## Testing
Add coverage for serialization, request and rollout preservation, mixed-image history ordering, incomplete ordering metadata, tool-output truncation, and rejection of unsupported image-edit selections.
GitOrigin-RevId: 6ca20a8577155cc934b720803c3b7b3bffdf972a
2026-09-15 21:19:08 +00:00
..
2026-09-15 20:41:39 +00:00
2026-09-15 18:41:13 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-09-01 18:24:56 +00:00
2026-09-15 21:19:08 +00:00
2026-09-09 17:45:37 +00:00
2026-09-14 15:30:22 +00:00
2026-08-21 06:41:28 +00:00
2026-08-31 22:38:23 +00:00
2026-08-25 05:16:45 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 20:41:39 +00:00
2026-09-15 10:45:16 +00:00
2026-09-14 19:30:11 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 16:40:06 +00:00
2026-08-25 13:10:24 +00:00
2026-09-11 01:57:54 +00:00
2026-09-11 01:57:54 +00:00
2026-09-11 01:57:54 +00:00
2026-09-02 23:58:24 +00:00
2026-09-02 23:58:24 +00:00
2026-09-14 23:25:09 +00:00
2026-09-09 17:56:06 +00:00
2026-09-15 17:09:11 +00:00
2026-09-15 17:09:11 +00:00
2026-09-10 21:30:56 +00:00
2026-09-15 00:29:13 +00:00
2026-09-14 22:58:51 +00:00
2026-09-09 18:40:53 +00:00
2026-09-09 18:40:53 +00:00
2026-09-09 18:40:53 +00:00
2026-09-13 15:47:59 +00:00
2026-09-14 23:25:09 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 20:41:39 +00:00
2026-09-14 23:25:09 +00:00
2026-09-10 18:24:13 +00:00
2026-09-15 20:41:39 +00:00
2026-09-01 13:43:27 +00:00
2026-09-10 21:51:34 +00:00
2026-08-25 19:54:52 +00:00
2026-09-11 20:27:37 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-09-03 00:17:19 +00:00
2026-09-01 14:43:27 +00:00
2026-08-20 07:03:02 +00:00
2026-09-01 18:24:56 +00:00
2026-09-13 06:07:03 +00:00
2026-09-14 22:58:51 +00:00
2026-08-25 21:34:05 +00:00
2026-09-14 22:58:51 +00:00
2026-08-21 21:17:42 +00:00
2026-09-13 15:47:59 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 17:09:11 +00:00
2026-08-26 16:28:35 +00:00
2026-09-11 14:25:56 +00:00
2026-08-29 06:05:28 +00:00
2026-09-15 15:03:29 +00:00
2026-09-15 15:03:29 +00:00
2026-09-01 13:43:27 +00:00
2026-09-15 18:23:08 +00:00
2026-08-20 17:46:05 +00:00
2026-08-17 19:06:53 +00:00
2026-09-09 17:46:00 +00:00
2026-09-04 21:17:25 +00:00
2026-08-17 04:01:37 +00:00
2026-08-18 18:41:40 +00:00
2026-09-08 23:45:10 +00:00
2026-09-10 18:24:13 +00:00
2026-08-31 22:38:23 +00:00
2026-09-15 17:09:11 +00:00
2026-09-10 19:41:14 +00:00
2026-09-10 09:50:59 +00:00
2026-09-11 21:32:04 +00:00
2026-09-02 23:58:24 +00:00
2026-09-02 23:58:24 +00:00
2026-08-31 23:29:20 +00:00
2026-09-15 16:40:06 +00:00
2026-08-23 20:08:40 +00:00
2026-08-24 10:56:54 +00:00
2026-09-14 22:58:51 +00:00
2026-09-13 06:07:03 +00:00
2026-09-13 06:07:03 +00:00
2026-09-15 18:41:13 +00:00
2026-09-09 06:04:59 +00:00
2026-08-20 06:03:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-27 00:07:26 +00:00
2026-09-13 06:53:20 +00:00
2026-09-13 06:53:20 +00:00
2026-09-11 01:57:54 +00:00
2026-09-15 08:28:03 +00:00
2026-09-15 02:33:27 +00:00
2026-09-10 18:24:13 +00:00
2026-09-13 15:47:59 +00:00
2026-09-13 15:47:59 +00:00
2026-09-05 13:02:49 +00:00
2026-09-04 12:56:26 +00:00
2026-08-25 17:41:22 +00:00
2026-09-15 18:41:13 +00:00
2026-09-09 19:31:12 +00:00
2026-08-20 06:29:32 +00:00