Skip to content

Allow reference attachments while refining icons - #38

Merged
AlexBoliachiy merged 3 commits into
masterfrom
codex/refinement-references
Nov 20, 2026
Merged

AlexBoliachiy merged 3 commits into
masterfrom
codex/refinement-references

Conversation

@AlexBoliachiy

@AlexBoliachiy AlexBoliachiy commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Refining a selected icon now accepts one additional image by drop or paste. Users can preview or remove the attachment, then generate an edit using the current icon’s original artwork, the reference, and their instruction together.

Regeneration keeps both inputs. Selecting a new result clears the completed edit’s attachment and continues the existing History chain.

Closes #29.

Changes

  • Compact attachment thumbnail with full-size preview and removal; no additional attachment button during refinement.
  • Inline compatibility feedback with Choose model, a retry action for failed checks, and compatible choices marked in model settings. Unsupported or unconfirmed combinations block generation while preserving the icon, attachment, and prompt.
  • Two-image requests for OpenAI, Gemini, OpenRouter, and ChatGPT. OpenRouter checks reference count and quality on the same endpoint and pins eligible providers. Direct providers use known model capabilities.
  • ChatGPT refinement instructions preserve composition instead of requesting a distinct composition.

Validation

  • npm run build, npm run dev:build, npx --no-install tsc --noEmit, and git diff --check passed against the current master baseline.
  • 148 provider, connection, and History tests passed.
  • 23 reference-refinement UI checks passed, including image formats, corrupted files, preview/removal, unsupported models, cancellation, retries, and later refinement steps.
  • Release regression, generation-settings UI, and History preview reuse checks passed.
  • Three live ChatGPT edits succeeded: reference-color transfer, a subsequent background change, and a flower-detail transfer. Repeated edits can still shift fine details.
  • Live OpenRouter capability checks accepted two compatible models and rejected a single-reference model. Direct OpenAI, Gemini, and OpenRouter image-generation quality was not evaluated with billed requests.

@AlexBoliachiy
AlexBoliachiy marked this pull request as ready for review November 19, 2026 14:13
@AlexBoliachiy
AlexBoliachiy merged commit 240c9b6 into master Nov 20, 2026
@AlexBoliachiy
AlexBoliachiy deleted the codex/refinement-references branch November 23, 2026 10:20
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.

Allow adding reference images while refining an existing icon

2 participants