Agent opens a new Edge debug connection every step and repeats Allow remote debugging

Describe the Bug

Agent browser control opens a new Microsoft Edge DevTools connection on every step. macOS Edge then repeats “Allow remote debugging?”. The agent said it would keep one connection, then each step still opened a new one. Edge also shows “Microsoft Edge is being controlled by automated test software.” The dialog is Edge’s consent UI. The defect is that the runtime does not reuse one debug session across steps.ZZZ

Steps to Reproduce

Agent browser control opens a new Microsoft Edge DevTools connection on every step. macOS Edge then repeats “Allow remote debugging?”. The agent said it would keep one connection, then each step still opened a new one. Edge also shows “Microsoft Edge is being controlled by automated test software.” The dialog is Edge’s consent UI. The defect is that the runtime does not reuse one debug session across steps.When an agent drives the already-open Microsoft Edge window, each step opens a new DevTools connection. On macOS, Edge then shows “Allow remote debugging?” again. The agent said it would reuse one connection, but each step still started a new one. Edge also keeps the bar “Microsoft Edge is being controlled by automated test software.” The dialog is Edge’s. The bug is that the agent runtime does not keep a single debug session across steps.

Operating System

MacOS

Version Information

Cursor 3.28.7, macOS 26.7.2 (Build 25G332).

For AI issues: which model did you use?

Cursor Agent chat. The model is not the cause. The runtime opened a new Microsoft Edge DevTools connection on each step.

Additional Information

OS: macOS 26.7.2. Cursor: 3.28.7. Expected: one Allow covers the whole task, or one DevTools session stays open across agent steps. Actual: each step opened a new connection, so Edge asked “Allow remote debugging?” again. Cursor still works; this interrupts agent browser work. Request ID was not copied.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hi @dfsdf, that prompt is Edge’s own consent check, and Edge shows it for every new DevTools connection, with no way to remember the approval. Cursor’s agent doesn’t keep a connection to your Edge between steps. Whatever is attaching (an MCP server or a script the agent runs in the terminal) opens a fresh connection each time, so Edge asks again. The “being controlled by automated test software” bar is also Edge’s, and it stays while something is attached.

Two ways around it:

  1. Use Cursor’s built-in browser instead: Cursor Settings → Browser → Browser Automation → Browser Tab. It doesn’t need the Edge prompt at all.
  2. If you need Edge, start it with a separate profile and a fixed debug port, and point your tool at http://127.0.0.1:9222. Edge doesn’t show the consent prompt in this mode:
/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --remote-debugging-port=9222 --user-data-dir="$HOME/edge-agent-profile"

How is the agent connecting to Edge right now: an MCP server from your mcp.json (which one?), or scripts it runs in the terminal?