# Remote images fail to load in Agent pane over SSH (\`vscode-remote-resource://undefined:undefined\`)

**URL:** <https://forum.cursor.com/t/remote-images-fail-to-load-in-agent-pane-over-ssh-vscode-remote-resource-undefined-undefined/166101>\
**Category:** Bug Reports\
**Tags:** agents-window, ssh\
**Created:** [July 19, 2026, 7:40am UTC](https://forum.cursor.com/t/remote-images-fail-to-load-in-agent-pane-over-ssh-vscode-remote-resource-undefined-undefined/166101 "2026-07-19T07:40:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhiming\_Ye](https://avatars.discourse-cdn.com/v4/letter/z/e9a140/32.png) [@Zhiming\_Ye](https://forum.cursor.com/u/Zhiming_Ye)\
**Post date:** [July 19, 2026, 7:40am UTC](https://forum.cursor.com/t/remote-images-fail-to-load-in-agent-pane-over-ssh-vscode-remote-resource-undefined-undefined/166101/1 "2026-07-19T07:40:01Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Remote images fail to load in the Agent pane over SSH

When using Cursor through Remote SSH, image files can be opened normally in the IDE’s built-in file preview, but the same images cannot be displayed in the Agent pane.

The failed image request uses a URL similar to:

```plaintext
vscode-remote-resource://undefined:undefined/stable-<commit>/vscode-remote-resource?path=%2Fremote%2Fproject%2Fimage.png&glassMediaVersion=1

```

The suspicious part is:

```plaintext
vscode-remote-resource://undefined:undefined/

```

It appears that the Agent pane fails to obtain the host and port of the Remote SSH resource proxy when generating the image URL.

### Actual behavior

- The image opens correctly in the IDE file preview.
- Other remote files can be accessed normally.
- The Agent pane cannot display any remote image.
- The generated remote-resource URL contains `undefined:undefined`.

### Additional observations

This appears to affect only the Agent pane’s remote-resource loading path. The Remote SSH filesystem connection itself is working correctly, and the image file exists and is readable.

Reloading the window or reopening the image does not reliably resolve the issue.

### Environment

- Cursor running through Remote SSH
- Cursor stable build
- Remote image preview works in the IDE
- Remote image preview fails in the Agent pane

### Steps to Reproduce

When using Cursor through Remote SSH, image files can be opened normally in the IDE’s built-in file preview, but the same images cannot be displayed in the Agent pane.

### Expected Behavior

The Agent pane should display image files from the current Remote SSH workspace, just as the IDE file preview does.

### Screenshots / Screen Recordings

 ![bug_20260719153919_166_44.png](https://us1.discourse-cdn.com/cursor1/original/3X/a/e/ae5c0a03a79b856d9eb737024f2cfb659bb769cf.png)

### Operating System

MacOS

### Version Information

Version: 3.12.17  
VS Code Extension API: 1.128.0  
Commit: 0fb762053c34788bb7760d5673f8a6d4c8589d50  
Date: 2026-07-17T02:53:53.006Z  
Layout: Agent Window  
Build Type: Stable  
Release Track: Default  
Electron: 40.10.3  
Chromium: 144.0.7559.236  
Node.js: 24.15.0  
V8: 14.4.258.32-electron.0  
xterm.js: 6.1.0-beta.256  
OS: Darwin arm64 25.4.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 19, 2026, 8:24am UTC](https://forum.cursor.com/t/remote-images-fail-to-load-in-agent-pane-over-ssh-vscode-remote-resource-undefined-undefined/166101/5 "2026-07-19T08:24:32Z")

</div>

Hey, thanks for the detailed report. The DevTools screenshot and the `undefined:undefined` URL are super helpful, and the symptom is clear.

Confirmed, this is a bug on our side. It only affects the image loading path in the Agent pane when using Remote SSH. The Agent pane doesn’t get the host and port for the remote resource proxy, so it generates a broken URL. The classic IDE preview uses a different path, so it works there. I’ve filed an internal report. I can’t share an ETA for a fix yet.

Workaround for now, open the image in the normal editor (Editor Window). Preview works there, like you noticed. There isn’t a workaround inside the Agent pane yet.

I’ll post an update in the thread once there’s progress on the fix.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 21, 2026, 8:27am UTC](https://forum.cursor.com/t/remote-images-fail-to-load-in-agent-pane-over-ssh-vscode-remote-resource-undefined-undefined/166101/7 "2026-07-21T08:27:06Z")

</div>

Closed on July 21, 2026, 8:27am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
