fix: never return the reference image as the generated result

Take the image baseline after attaching references so composer thumbnails
are excluded, and reject downloads byte-identical to a reference so the
job is retried in a fresh chat.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-10-08 17:28:42 +02:00
1 parent 6fed2cd382
commit 972f6ae143
2 files changed
+10 -1

No files matched your search

+1
View File
@@ -10,3 +10,4 @@ Recurring mistakes and how to avoid them. Several of these come from ZenvairoPro
- **One process per profile.** Chromium locks the profile directory. Stop the service before `npm run login`.
- **Don't force contradictory format rules.** Prospect rejected good images because a prompt rule and a QA aspect-ratio rule disagreed. Aspect ratio is a best-effort hint here and is not validated.
- **zsh and `git show rev:path`.** Quote the argument (`git show 'abc^:path'`), or zsh modifiers such as `:r` mangle it.
- **Take the image baseline after attaching references.** Reference thumbnails show up in the composer before sending and are not inside a user message, so a baseline taken earlier lets them pass as the generated result. The provider also rejects a download byte-identical to a reference.