Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When an agent calls the built-in browser tool browser_cdp with method: "Page.reload", the whole Cursor window reloads instead of only the page in the browser tab. All four extension hosts exit and restart, the running browser_cdp call fails with Canceled, and the agent’s current turn is interrupted. The user has to tell the agent to continue.
This happened on 8 out of 8 Page.reload calls over three days, each time 60–370 ms after the call. Other CDP methods never caused it: 107 × Runtime.evaluate (16 of them ran location.reload() inside the page), 4 × Emulation.*, 3 × DOM.*.
Log excerpt (Browser Automation output, UTC):
[2026-11-05T05:59:02.762Z] Executing tool: browser_cdp with args: {"method":"Page.reload","params":{"ignoreCache":true}}
[2026-11-05T05:59:02.909Z] Browser Automation MCP Provider disposed
[2026-11-05T05:59:02.921Z] Error executing tool browser_cdp:: Canceled
main.log at the same moment (UTC+8):
13:59:02.917 Extension host with pid 34304 exited with code: 0
13:59:02.927 Extension host with pid 62316 exited with code: 0
13:59:03.301 Extension host with pid 43364 exited with code: 0
13:59:03.519 Extension host with pid 37932 exited with code: 0
13:59:04.098 [PowerMainService] Releasing 1 orphaned wakelock(s) for owner=window:1 releaseReason=ipc-client-disconnect
Likely cause: the built-in browser is a <webview> guest inside the workbench window, and browser_cdp forwards the command unchanged to the guest’s webContents.debugger. Chromium’s PageHandler::Reload (content/browser/devtools/protocol/page_handler.cc) reloads the embedder when the target is a guest view (host_->GetOutermostMainFrameOrEmbedder(), with the comment “In the case of inspecting a GuestView … we should reload the outer web contents (embedder)”). The embedder here is the Cursor workbench. The CDP deny list in out/main.js blocks Page.navigate, Page.navigateToHistoryEntry and Page.getNavigationHistory, but not Page.reload.
Possible fix: handle Page.reload in the forwarder by calling reload() / reloadIgnoringCache() on the guest’s own webContents, or add it to the deny list with an error that points to an alternative.
Workaround: run location.reload() with Runtime.evaluate, or call browser_navigate with the same URL.
Steps to Reproduce
- Open any page in Cursor’s built-in browser, for example
http://127.0.0.1:5178. - In an Agent chat, ask the agent to reload that page with the
browser_cdptool, using:
{"method": "Page.reload", "params": {"ignoreCache": true}} - Watch the Cursor window. Within half a second it reloads, the agent’s tool call fails with
Canceled, and the agent stops mid-turn.
Expected Behavior
Only the page in the built-in browser tab reloads, the same way it does with location.reload() run through Runtime.evaluate. The Cursor window, extension hosts, and the running agent turn are not affected, and browser_cdp returns normally. If Page.reload can’t be supported for webview guests, browser_cdp should reject it with a clear error instead of reloading the window.
Operating System
Windows 10/11
Version Information
Version: 3.28.7 (user setup)
VS Code Extension API: 1.128.0
Commit: 25b52e7d03ebf2d5608914158e119f7992432a30
Date: 2026-11-03T02:20:44.943Z
Layout: IDE
Build Type: Stable
Release Track: Nightly
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26220
Does this stop you from using Cursor
No - Cursor works, but with this issue