You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Require explicit image_prompt on all outgoing messages (jaredlockhart#795)
* Require explicit image_prompt on all send_response calls
Every outgoing message must now provide a short image search query
(max 100 chars). Removes the auto-image fallback that sent full message
content to Serper (causing 400 errors on long messages).
Image prompt sources by path:
- Chat messages: search query from tool calls, fallback to user message
- Notifications: first bold headline from response, fallback to answer text
- Check-ins: configurable CHECKIN_IMAGE_PROMPT
- News: first headline, fallback to "latest news"
- Scheduled tasks: search query from tool calls, fallback to prompt text
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Use preference topic as image prompt for thought notifications
Look up the seed preference content (e.g., "shadowrun", "tube pedals")
via preference_id FK on the thought. Falls back to first headline or
answer text if no preference is linked. Also adds get_by_id to
PreferenceStore.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Test image prompts for all notification paths
Assert on the actual Serper query for each notification type:
- Thought candidates: preference topic ("quantum computing")
- News: first bold headline ("AI Breakthrough")
- Check-in: config param ("funny cat meme")
- Chat messages: model's search query ("test search query")
All assertions verify the query is short and matches the expected source.
Also seeds test thoughts with preference_id FK for proper preference lookup.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Jared Lockhart <119884+jaredlockhart@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments