Agents Window: PDF files cannot be previewed

Describe the Bug

Where does the bug appear (feature/product)?

Cursor IDE — Agents Window (Glass)

Describe the Bug

In the Agents Window, opening a .pdf file does not show a usable PDF preview. The file either fails to render, shows as a non-preview / binary-style view, or otherwise cannot be visually previewed inside Agents Window.

In contrast, PDF viewing/preview behavior outside Agents Window (classic Editor / system PDF viewer) works as expected for the same files.

This breaks the Agents Window workflow when agents generate or edit PDFs (reports, exports, LaTeX builds, etc.): I have to leave Agents Window and open the file elsewhere just to review the result.

Related context (not the same bug, but adjacent):

Steps to Reproduce

  1. Open Cursor on Windows with Agents Window as the primary surface (Glass layout).
  2. Open (or create) a workspace that contains a valid .pdf file.
  3. From Agents Window, open the PDF via file search (Ctrl+P) or by clicking the file path from an agent response / file tree.
  4. Observe that the PDF does not preview correctly inside Agents Window.
  5. Open the same PDF outside Agents Window (classic Editor, or OS default PDF viewer) and confirm the file itself is valid and viewable.

Expected Behavior

Agents Window should preview PDF files inline (readable pages), with parity to how PDFs can be viewed elsewhere in Cursor / on the OS — so agent-produced PDFs can be reviewed without leaving Agents Window.

Actual Behavior

PDF preview does not work in Agents Window (no usable rendered preview when opening .pdf files from that surface).

Operating System

Windows 11 (25H2), build 10.0.26200

Steps to Reproduce

None

Operating System

Windows 10/11

Version Information

Cursor IDE: 3.12.17 (stable)

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. There’s an important detail here: PDF preview in the Agents Window isn’t supported right now. This isn’t a regression, it’s a current limitation. File tabs in the Agents Window can render text and images (png/jpg/webp, etc.), but .pdf goes through the binary path and shows “Binary file is not supported”.

On parity: in the classic Editor Window, Cursor and VS Code also don’t have native PDF rendering. You only get it via a marketplace extension (PDF viewer) or the system viewer. The Agents Window doesn’t go through the VS Code custom editor API, so those extensions don’t work there yet.

Workarounds for now:

  • Right click the file tab and choose Open in IDE. This opens the classic Editor Window, where the marketplace PDF extension can render the file.
  • Or use Reveal in Finder / Open Containing Folder and open the PDF in your system viewer.

We’ve logged a request to expand the list of supported formats in the Agents Window, but I can’t share a specific ETA for PDF yet. If there’s an update, I’ll reply in the thread.

Hey @pengkangzhen good news on this thread. PDF preview in the Agents Window is now available in the latest version of Cursor. Opening a .pdf from the file tree, via Ctrl+P, or from a file path in an agent reply now renders the pages right in the file tab for files up to 25 MB, so you no longer need to switch to the classic Editor or a system viewer to see PDFs generated by the agent.

Just in case, you were on 3.12.17, and the preview was added later. Update Cursor to the latest version and it should work. Files larger than 25 MB still aren’t supported for preview yet, and you’ll see a hint to open the file in an external viewer. This limit is intentional.

Try it after updating and let me know how it goes.

Hello @deanrie.
Unfortunately, my issues with viewing PDFs in the Agents browser window seems to have started with the recent Cursor update. My current version is 3.19.13.
A web app I have been developing, creates and opens inline PDFs. This was working fine up until the recent Cursor update.
It still works fine with my app on Chrome Browser.
PDF files are well below 25MB, ~55KB.
It just shows as a blank PDF file.

Have you seen any other issues with this recently?

Hey @JackAllen. What you’re describing is a separate issue from the original topic. This thread was about PDF preview in the file-tab Agents Window (that’s already shipped in recent versions). Your issue is in Cursor Browser itself: the web app returns an inline PDF, and after the update it shows up blank. That’s a different surface, so let’s track it separately.

To avoid mixing everything in one thread (it’s easier to follow your specific case), please start a new thread in Bug Reports and include:

  • How the PDF is opened. Is it from a URL in a local web app, for example http://localhost:..., or something else
  • A screenshot of the blank PDF in Cursor Browser
  • Whether it reproduces if you open the PDF URL directly in Cursor Browser (without your app), and whether it happens for all PDFs or only this one
  • Your exact OS, and confirmation of the Cursor version (you’re on 3.19.13)

With those details, we’ll have something concrete to dig into. Share the link to the new thread here and the team will pick it up.