Codex App (or codex response) inconsistently includes screenshots inline on response

Open 💬 2 comments Opened Mar 16, 2026 by lgo
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.311.21342 (993)

What subscription do you have?

Pro

What platform is your computer?

MacOS

What issue are you seeing?

I am finding that Codex will inconsistently include screenshots in the response, or just hyperlink the code (whether or not that is an implicit behaviour of the codex app). This is:

  • Using the built-in Playwright CLI MCP, although it's unclear if that matters as the repo is explicitly setup for playwright UI work
  • Includes some AGENTS.md instructions such as
- When making UI changes, prefer to use Playwright to exercise the UI, take screenshots, and review those screenshots before deciding the UI is correct
...
When you are making UI changes, please use playwright to view the changes and respond with them as well as include them on your pull requests. Make sure to correctly include the screenshot upload on Github (via `--attach`). Please don't just link to the file in your response, but include the markdown reference inline.
  • 019cf744-030b-7921-b73c-a10629fb3e5a includes an href to the file for a playwright screenshot.
  • 019cf744-ec5a-7210-aea7-67b4ad2de91d does correctly include a playwright screenshot inline.

What steps can reproduce the bug?

It's unclear what exactly is misbehaving, but I imagine a small repro with playwright and some different prompting might yield the divergent behaviour.

What is the expected behavior?

Ideally any screenshots included will be inlined on the response. It may be more consistent if the Codex app would consistently inline .png or other images rather than hyperlinking them.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #14576

Powered by Codex Action

codyc1515 · 5 months ago

I am also facing this issue. It is telling me:

Screenshot
⚠️ I couldn’t generate or show a screenshot in this environment because the required browser/screenshot tooling is not available here.
Testing
✅ git diff --check
✅ python - <<'PY' from html.parser import HTMLParser from pathlib import Path class Parser(HTMLParser): pass Parser().feed(Path('x.html').read_text()) print('HTML parse ok') PY
⚠️ command -v chromium || command -v chromium-browser || command -v google-chrome || command -v wkhtmltoimage || command -v playwright — no browser/screenshot tool was available