# Self-hosted worker artifacts upload, but PR artifact links 404 (path mismatch)

**URL:** <https://forum.cursor.com/t/self-hosted-worker-artifacts-upload-but-pr-artifact-links-404-path-mismatch/179708>\
**Category:** Bug Reports\
**Tags:** windows, self-hosted, cloud-agents\
**Created:** [December 1, 2026, 3:20pm UTC](https://forum.cursor.com/t/self-hosted-worker-artifacts-upload-but-pr-artifact-links-404-path-mismatch/179708 "2026-12-01T15:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baruch\_Brodersen](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@Baruch\_Brodersen](https://forum.cursor.com/u/Baruch_Brodersen)\
**Post date:** [December 1, 2026, 3:20pm UTC](https://forum.cursor.com/t/self-hosted-worker-artifacts-upload-but-pr-artifact-links-404-path-mismatch/179708/1 "2026-12-01T15:20:59Z")

</div>

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

Cloud Agent (GitHub, Slack, Web, Linear)

### Describe the Bug

**What happens:** Artifact links that the agent posts in its PR comment open nothing, even when I’m signed in, on the web or in the app. Example: `https://cursor.com/agents/bc-be6c161f-7abc-530a-a160-29e5378b0158/artifacts?path=%2Fopt%2Fcursor%2Fartifacts%2Fproducts-reopen-remote.png`

**Expected:** `/opt/cursor/artifacts/<file>.png` should map to `artifacts/<file>.png` on self-hosted workers, as it does on Cursor VMs, and the PR links should open the image.

**Repro:** Run any cloud agent on a self-hosted Windows worker that saves a screenshot to `/opt/cursor/artifacts/` and links it in its PR comment, then click the link.

### Steps to Reproduce

**What I found:**

1. The agent saves screenshots to the cloud-VM path `/opt/cursor/artifacts/<file>.png`. On Windows that becomes `C:\opt\cursor\artifacts\`.
2. The worker uploads them successfully: S3 is reachable, the upload state shows full bytes and an empty `lastError`.
3. The worker stores each file under the full path, so the object is indexed as `artifacts/opt/cursor/artifacts/<file>.png` instead of `artifacts/<file>.png`.
4. The PR link asks for `path=/opt/cursor/artifacts/<file>.png`, and the v1 API rejects absolute paths, so the link resolves to nothing.
5. The worker log still ends each batch with `finished uploading artifacts … results: [Error, …]` and no further detail.

### Expected Behavior

**Expected:** `/opt/cursor/artifacts/<file>.png` should map to `artifacts/<file>.png` on self-hosted workers, as it does on Cursor VMs, and the PR links should open the image.

**Repro:** Run any cloud agent on a self-hosted Windows worker that saves a screenshot to `/opt/cursor/artifacts/` and links it in its PR comment, then click the link.

### Operating System

Windows 10/11

### Version Information

Version: 3.32.24 (user setup)  
VS Code Extension API: 1.147.0  
Commit: 35373c21b6adbc9abeeaff77fdc78e2c008ba8a0  
Date: 2026-11-30T19:13:36.909Z  
Layout: Agent Window  
Build Type: Stable  
Release Track: Default  
Electron: 43.8.9  
Chromium: 150.0.7871.250  
Node.js: 24.22.1  
V8: 15.0.245.31-electron.0  
xterm.js: 6.1.0-beta.291  
OS: Windows\_NT x64 10.0.26300

### For AI issues: add Request ID with privacy disabled

b58a0422-8885-4d57-a132-e0900b881e26

### Does this stop you from using Grok

No - Grok works, but with this issue

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [December 1, 2026, 3:52pm UTC](https://forum.cursor.com/t/self-hosted-worker-artifacts-upload-but-pr-artifact-links-404-path-mismatch/179708/5 "2026-12-01T15:52:10Z")

</div>

Hey @Baruch_Brodersen, your read of it is right. The screenshots upload fine, but on a self-hosted worker a file saved to `/opt/cursor/artifacts/` gets stored with that whole path nested inside the run’s artifacts folder, while the link in the PR comment still points at the short path, so it finds nothing. I’ve passed this on to the team.

Two things that should help for now:

1. For links already posted, repeat the folder in the `path` value and they should open, for example `https://cursor.com/agents/bc-be6c161f-7abc-530a-a160-29e5378b0158/artifacts?path=%2Fopt%2Fcursor%2Fartifacts%2Fopt%2Fcursor%2Fartifacts%2Fproducts-reopen-remote.png`. The files are also listed on the agent’s own page on [cursor.com](http://cursor.com).
2. For new runs, tell the agent (in the prompt or a project rule) to save screenshots in the artifacts folder named in its own instructions for that run, not in `/opt/cursor/artifacts/`. Files saved there get links that resolve.
