codex - 💡(How to fix) Fix Codex App in-app browser shows wrong gallery item for URL query parameter [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21132Fetched 2026-05-06 06:26:15
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Root Cause

This matters because Codex may inspect the visible browser state and incorrectly associate the URL/query parameter with the wrong rendered content.

RAW_BUFFERClick to expand / collapse

Codex App version

26.429.30905

Platform

Microsoft Windows NT 10.0.22631.0 x64

What issue are you seeing?

The Codex App in-app browser can display a different gallery item than the one specified by the URL query parameter.

For this URL:

https://developers.openai.com/api/docs/guides/image-generation?gallery=open&galleryItem=patterns

the in-app browser address bar shows galleryItem=patterns, but the rendered gallery detail shows the adjacent landscape item instead. The visible prompt is:

Turn the scene into a cool pre-dawn blue hour. Soften shadows, introduce subtle morning mist, shift sky to deep indigo.

This does not match the URL parameter.

The same URL in regular Chrome renders the expected patterns item, showing the textile pattern image and prompt:

Create a high-quality repeatable textile pattern in {style} tradition. The pattern should be reusable when used side by side.

What steps can reproduce the bug?

  1. Open Codex App on Windows.
  2. Use the in-app browser.
  3. Navigate to: https://developers.openai.com/api/docs/guides/image-generation?gallery=open&galleryItem=patterns
  4. Observe the currently displayed gallery detail.

I also verified the page data separately: the gallery order contains patterns immediately before landscape, so this looks like the in-app browser / SPA hydration / scroll restoration state is one item off from the query parameter.

What is the expected behavior?

The in-app browser should render the gallery item specified by the galleryItem query parameter. In this case it should render patterns, not landscape.

Additional information

This matters because Codex may inspect the visible browser state and incorrectly associate the URL/query parameter with the wrong rendered content.

extent analysis

TL;DR

The in-app browser's rendering of the gallery item may be fixed by adjusting the scroll restoration or hydration logic to correctly match the galleryItem query parameter.

Guidance

  • Verify that the issue is indeed related to scroll restoration or hydration by checking if the problem persists when the in-app browser is refreshed or when the URL is navigated to directly.
  • Inspect the page data and gallery order to confirm that the patterns item is correctly positioned before landscape.
  • Consider adding logging or debugging statements to the in-app browser's rendering logic to determine why the wrong gallery item is being displayed.
  • Check if the issue is specific to the Windows platform or if it occurs on other platforms as well.

Example

No code snippet is provided as the issue does not contain sufficient information about the implementation details.

Notes

The issue may be related to the specific implementation of the in-app browser and its interaction with the SPA hydration and scroll restoration mechanisms. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround to adjust the scroll restoration or hydration logic to correctly match the galleryItem query parameter, as the root cause of the issue is likely related to this aspect of the in-app browser's functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex App in-app browser shows wrong gallery item for URL query parameter [1 participants]