Files
ai-agent/backend/notify.py
Gabriel Vidal 7fcd7d98eb feat(notify): carry --image on asks through to the viewer
notify-ask has always accepted --image and the HA integration renders it on
the phone, but the ai-agent viewer dropped it: the ask record never stored
the image and neither the notification feed nor the "Waiting for feedback"
card displayed one — so a notify-ask --image looked bare in the UI while a
plain notify --image showed the picture.

- notify.py: create_ask() accepts + persists `image`
- main.py: /api/ask passes body.image to create_ask; /api/notify records
  `image` on the log entry; the flat-feed mirror carries it through
- schemas.py: `image` on AskRecord, NotifyLogEntry, FeedNotification,
  ConvNotification (regenerated openapi.json + orval models)
- frontend: FeedNotif / WaitingItem carry `image`; NotificationCard (feed,
  expanded) and WaitingForFeedback's ask card render it, mirroring the
  existing NotifyWidget treatment (inline <img> for http(s), text otherwise)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 13:51:29 +02:00

11 KiB