Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I maintain a VS Code extension with several webviews (sidebar views + editor panel). In Cursor, opening a second window while the first is still open (and webviews are open in that first window) often leaves webviews blank for a long time (2-5 minuites) before rendering suddenly starts working.
The same extension works normally in VS Code and Antigravity and has no issues rendering in multiple instances at once.
The rendering is not per-window instance, but per webview/panel. So if i have two instances i can open panel A in one, and panel B in another. But opening the same panel in different window struggles to render and stays fully blank.
Closing the first (working) window instantly renders all the blank webviews in window 2.
Some additional notes and logs:
In webview DevTools → Network: index.html loads immediately; fake.html is delayed until the stall clears, then everything renders. I.e. when closing the other window.
Debugging have lead me to console.log output like:
Found unexpected service worker controller. Found: …/service-worker.js?…&id=<uuid-A>…
Expected: …/service-worker.js?…&id=<uuid-B>…
Waiting for controllerchange.
This log is not appearing in neither VSCode or Antigravity.
A theory is screenshotted and attached, but i am not knowlegable enough to debug further/solve it.
Finally i want to add that this extension is quite extencive and uses React and communication with localhost apis etc. I have tried to slim it down to try to resolve, but it did not work. However creating a fully fresh extension with just simple HTML content did solve the issue i think. So some sort of resource exhaustion in the service workers/webview renderers could be likely i guess.
Steps to Reproduce
I understand that it might not be the best to link to an extension, but reproducing using this works:
Use the Mangabey.distinct-sh and follow:
Steps to reproduce:
- Window 1: open extension webviews (for example Schema Explorer panel).
- Open a second Cursor window while window 1 stays open.
- Webviews in window 2 stay blank.
- Close window 1 and see the rendering in window 2 suddenly appear.
Expected Behavior
Webviews render within a few seconds (as in VS Code / Antigravity) in each IDE instance.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Version: 3.7.36
VS Code Extension API: 1.105.1
Commit: 776d1f9d76df50a4e0aeca61819a88e7c1b861e0
Date: 2026-06-13T00:31:56.287Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.6.0
Does this stop you from using Cursor
No - Cursor works, but with this issue
