Windows app: PDF preview shows stale content after the PDF is overwritten at the same path

Open 💬 1 comment Opened Jun 4, 2026 by EE-zim

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

OpenAI.Codex_26.601.2237.0

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Title: Windows app: LaTeX-generated PDF preview shows stale content after recompilation

Environment:

  • OS: Windows [10/11 + version]
  • Codex App version: [version]
  • Component: Codex Windows desktop app
  • Workflow: Editing LaTeX files and previewing the generated PDF artifact

Description:
When editing a LaTeX project in Codex on Windows, the generated PDF preview does not refresh after the PDF is recompiled and overwritten at the same path.

Steps to reproduce:

  1. Open a LaTeX project in Codex Windows desktop app.
  2. Open or create a file such as main.tex.
  3. Compile the LaTeX file to generate main.pdf.
  4. Preview main.pdf inside Codex.
  5. Modify main.tex.
  6. Recompile the project so that main.pdf is overwritten at the same path.
  7. Open main.pdf in an external PDF viewer such as Edge or Adobe Reader.
  8. Return to the Codex PDF preview.

Expected:
The Codex PDF preview should reload and display the newly compiled PDF.

Actual:
The Codex PDF preview continues to show the old PDF contents. External PDF viewers show the updated PDF correctly. Fully restarting the Codex Windows desktop app makes the preview show the updated file.

Additional notes:

  • This appears to be Windows-specific in my testing.
  • The same LaTeX workflow does not reproduce on macOS.
  • Switching files or reopening the PDF preview does not reliably invalidate the stale preview.
  • This may be a PDF artifact preview cache invalidation issue when a file is overwritten at the same path.

What steps can reproduce the bug?

Steps to reproduce:

Open a LaTeX project in the Codex Windows desktop app.
Open or create a file such as main.tex.
Compile the LaTeX file to generate main.pdf.
Preview main.pdf inside Codex.
Modify main.tex, for example by changing visible text in the document.
Recompile the project so that main.pdf is overwritten at the same path.
Open main.pdf in an external PDF viewer such as Edge or Adobe Reader.
Return to the Codex PDF preview.

What is the expected behavior?

The Codex PDF preview should reload and display the newly compiled PDF.

Actual:
The Codex PDF preview continues to show the old PDF contents. External PDF viewers show the updated PDF correctly. Fully restarting the Codex Windows desktop app makes the preview show the updated file.

Additional information

Additional notes:

This appears to be Windows-specific in my testing.
The same LaTeX workflow does not reproduce on macOS.
Switching files or reopening the PDF preview does not reliably invalidate the stale preview.
This may be a PDF artifact preview cache invalidation issue when a file is overwritten at the same path.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗