Skip to content

[codex] Fix Design Studio image generation - #16

Merged
kevrez merged 4 commits into
mainfrom
codex/fix-design-generation
Jun 18, 2026
Merged

kevrez merged 4 commits into
mainfrom
codex/fix-design-generation

Conversation

@kevrez

@kevrez kevrez commented Jun 18, 2026

Copy link
Copy Markdown
Owner

What changed

  • accept Gemini's native output dimensions instead of rejecting valid images
  • reliably submit the selected OpenAI or Nano Banana model
  • show generation progress and actionable provider failures
  • preserve image aspect ratios in library and selected-design previews
  • version static CSS/JS URLs so rebuilt assets are not hidden by browser cache

Why

Design Studio could leave blank cards after valid Gemini responses, submit OpenAI despite a Nano Banana selection, hide the real OpenAI billing error, and crop non-square images in square preview frames.

Validation

  • exercised Nano Banana and OpenAI paths through the local webpage
  • confirmed a 1408×768 Gemini image renders fully in both preview surfaces
  • make test — 133 passed, 3 deselected
  • Ruff and mypy pass

@kevrez
kevrez marked this pull request as ready for review June 18, 2026 23:32
@kevrez
kevrez merged commit 89b3dc9 into main Jun 18, 2026
4 checks passed
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.

1 participant