Skip to content

fix(chatgpt): ignore image placeholders and upload previews#1802

Merged
jackwener merged 3 commits into
jackwener:mainfrom
ken-zy:fix/chatgpt-image-output-filter
May 31, 2026
Merged

fix(chatgpt): ignore image placeholders and upload previews#1802
jackwener merged 3 commits into
jackwener:mainfrom
ken-zy:fix/chatgpt-image-output-filter

Conversation

@ken-zy
Copy link
Copy Markdown
Contributor

@ken-zy ken-zy commented May 31, 2026

Summary

  • Filter ChatGPT user-uploaded reference previews from image output detection
  • Avoid saving transparent/blank canvas placeholders as successful image results
  • Add regression coverage for upload-preview filtering and canvas content sampling

Test Plan

  • npm test -- --run clis/chatgpt/utils.test.js
  • npm run test:adapter -- --run clis/chatgpt
  • npm run typecheck

Background

Verified locally against ChatGPT Web image generation: before this patch the command could report success while saving either a blank transparent canvas placeholder or the uploaded reference preview instead of the generated image. After filtering these candidates, the adapter saved the real generated output.

@jackwener jackwener merged commit 54270cd into jackwener:main May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants