You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOM extraction fails: selectors do not match current Cursor UI (Cursor in foreground, recent version) #9
DOM extraction fails with repeated warnings in the log, even when Cursor is open and in the foreground. The logs show repeated lines like:
[state-manager] 10 consecutive failed extractions. Selectors may need updating or the Cursor window may be background-throttled.
[dom-extractor] Extraction failed: CDP timeout for Runtime.evaluate (5000ms)
[window-monitor] First cycle — 0 window(s), home=....
To Reproduce
Steps to reproduce the behavior:
Start CursorRemote server via the VS Code extension
Open Cursor IDE and make sure it's running and in the foreground
Observe the server logs — DOM extraction warnings are present and windows list is empty
Expected behavior
Should extract windows/chat info from Cursor successfully when app is running and in foreground.
Context
CursorRemote extension version: 0.1.44-universal
Cursor IDE version: [please complete]
OS: Windows
Log excerpt:
[state-manager] 10 consecutive failed extractions. Selectors may need updating or the Cursor window may be background-throttled.
[dom-extractor] Extraction failed: CDP timeout for Runtime.evaluate (5000ms)
[window-monitor] First cycle — 0 window(s), home=.....
What I tried
Cursor is confirmed active and focused
Restarted both Cursor IDE and CursorRemote server
No suspicious errors in Cursor itself
Extraction warnings persist
Additional info
This suggests a selector mismatch with the current Cursor DOM
Please advise how to update selectors for new Cursor releases
Can supply more DOM structure/devtools output if needed
Per-card approval extraction — for the new approval UI in shell tool calls.
Could you upgrade and try again? If you're still seeing extraction timeouts, please share:
Cursor version (Help → About)
The first ~50 lines of temp/server.log after a fresh start
Output of curl http://localhost:9222/json/list
That'll tell us exactly what your Cursor's DOM looks like.
@Meir553 v0.1.46 likely fixes this. It's the same selector-drift class as #22. Cursor reskinned the model picker between builds, our selectors didn't, and extractions started timing out as a knock-on effect of the broader DOM changes. v0.1.46 ships:
selectors.json cascade for the model dropdown (.ui-model-picker__trigger first, legacy .composer-unified-dropdown-model as fallback).
Menu detection via data-testid → trigger's aria-controls → first visible [role="menu"], removing the hardcoded [data-testid="model-picker-menu"] dependency.
Edit-button-as-model filter, label cleanup, React useId handling.
If your extraction was failing because a different selector group also moved (composer container, chat input, message rows), the model picker fix won't cover you. Please try v0.1.46 first. If it still fails, share:
Your Cursor version (Help → About).
Output of curl http://localhost:9222/json/list so I can see the workbench target.
The first ~50 lines of the relay log after a fresh start. Specifically the [dom-extractor] and [window-monitor] lines.
curl http://localhost:3000/health and curl http://localhost:3000/debug/state (with auth).
That's enough for me to either reproduce or point you at the selector that needs updating.
Closing as fixed in the latest releases: the glass sidebar agent rail is now supported and v0.1.46 fixed the model picker on Cursor 3.5+. If you're on Cursor 3.8.x and see no messages at all, that's #36 (fix shipping in v0.1.47). If something else is still off after updating, please open a fresh issue with your Cursor version.
Activity
len5ky commentedon May 7, 2026
@Meir553 — v0.1.45 is out (https://github.com/len5ky/CursorRemote/releases/tag/v0.1.45) with two fixes that very likely affect your case:
.agent-sidebar-cellto a glass-sidebar component. Older relay versions saw zero windows / zero tabs in those builds.Could you upgrade and try again? If you're still seeing extraction timeouts, please share:
temp/server.logafter a fresh startcurl http://localhost:9222/json/listThat'll tell us exactly what your Cursor's DOM looks like.
v0.1.46
len5ky commentedon May 27, 2026
@Meir553 v0.1.46 likely fixes this. It's the same selector-drift class as #22. Cursor reskinned the model picker between builds, our selectors didn't, and extractions started timing out as a knock-on effect of the broader DOM changes. v0.1.46 ships:
selectors.jsoncascade for the model dropdown (.ui-model-picker__triggerfirst, legacy.composer-unified-dropdown-modelas fallback).data-testid→ trigger'saria-controls→ first visible[role="menu"], removing the hardcoded[data-testid="model-picker-menu"]dependency.useIdhandling.If your extraction was failing because a different selector group also moved (composer container, chat input, message rows), the model picker fix won't cover you. Please try v0.1.46 first. If it still fails, share:
curl http://localhost:9222/json/listso I can see the workbench target.[dom-extractor]and[window-monitor]lines.curl http://localhost:3000/healthandcurl http://localhost:3000/debug/state(with auth).That's enough for me to either reproduce or point you at the selector that needs updating.
len5ky commentedon Jul 7, 2026
Closing as fixed in the latest releases: the glass sidebar agent rail is now supported and v0.1.46 fixed the model picker on Cursor 3.5+. If you're on Cursor 3.8.x and see no messages at all, that's #36 (fix shipping in v0.1.47). If something else is still off after updating, please open a fresh issue with your Cursor version.
v0.1.46