codex - 💡(How to fix) Fix Model reads image files with the same name, UI always shows the first loaded image

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…
RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

26.5519.32039 pre relase

What subscription do you have?

API only

Which IDE are you using?

VS code

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

When the model reads two different image files that have the same filename (e.g., both named diagram.png but located in different directories), the UI always displays the first loaded image instead of the correct one corresponding to the current context. Even after clearing cache or reloading, the old image persists

What steps can reproduce the bug?

Load image A named test.png from folder dir1/ – UI shows image A correctly.

Load image B also named test.png from folder dir1/ (as is the same dir1/test.png)

<img width="785" height="1059" alt="Image" src="https://github.com/user-attachments/assets/69f32501-79cb-47c6-9e40-544c188efb39" />

– UI still shows image A (the first one).

Refresh or reopen the model – the incorrect image remains.

Expected: UI should display image B.

What is the expected behavior?

<img width="1145" height="737" alt="Image" src="https://github.com/user-attachments/assets/5e03b921-eea6-4f16-b435-dcf316269861" /> The UI should display the image that corresponds to the most recently loaded file path, regardless of identical filenames. The model should differentiate images by their full path or a unique identifier, not just the basename.

Additional information

No response

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