Add app-server notification media filtering (#41416)

## What changed

- Add the disabled-by-default `omit_app_server_notification_media` feature.
- When enabled, remove inline image and audio content from `item/started`,
  `item/completed`, and `rawResponseItem/completed` notifications, including
  tool output and image-generation results.
- Keep the media in model input; the filter only changes app-server
  notifications.

## Testing

- Verify that image content is absent from all three notification types while
  the model request still receives it.

GitOrigin-RevId: 9a4434d18a3dac6d67c2e0c3723ff4595a9b3797
This commit is contained in:
Vivian Fang authored and copyberry committed 2026-08-28 21:06:35 +00:00
1 parent 170da98842
commit 03147407e3
6 files changed
+337 -25

No files matched your search

+1
View File
@@ -119,6 +119,7 @@ mod mcp_refresh;
mod message_processor;
mod models;
mod models_refresh_worker;
mod notification_media;
mod otel_reloader;
mod outgoing_message;
mod realtime_event_handling;