Repository navigation
fix(flow): swap 3:4 and 4:3 in the frontend image aspect-ratio enum - #198
Open
king-of-Jupiter wants to merge 1 commit into
Open
king-of-Jupiter wants to merge 1 commit into
king-of-Jupiter wants to merge 1 commit into
Conversation
Images requested as 3:4 came back as 4:3 and vice versa through the ogiZ0b frontend RPC: the numeric enum had the two values swapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Images requested as 3:4 come back as 4:3 and vice versa when generation goes through the Flow frontend RPC (
ogiZ0b). The numeric enum in_map_frontend_image_aspect_ratiohas the two values swapped.Reproduced on 2026-11-15 with
gemini-3.1-flash-image-*, text-to-image, no reference images, via/v1/chat/completions:gemini-3.1-flash-image-three-fourgemini-3.1-flash-image-four-threeThe same happens with a reference image (853×1280 input,
three-fourrequested, 1200×896 returned). Square, 16:9 and 9:16 come back correctly.This swaps the two values and updates
tests/test_flow_image_rollout.py, which pinned the old ones. The REST path (imageAspectRatioas a string) is unchanged.python -m unittest tests.test_flow_image_rolloutpasses (17 tests).🤖 Generated with Claude Code