Test Explorer Filter steals keyboard focus

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Often when I have the Test Explorer pane open, and am typing in a file editor, the Filter pane in the Test Explorer will suddenly gain focus and my keystrokes are sent there.

Steps to Reproduce

I’m uncertain if it only repros while I’m stopped at a breakpoint while debugging a test. I’m uncertain if it only repros when I save a test file.
I know it does not always repro with either of the above. It seems to happen ~randomly. I do not believe a special keyboard binding has been triggered, as it often happens when typing unmodified characters alone.

While typing up this bug report, and failing to repro it, I switched back to Cursor and noticed that the Filter input was focused.

Expected Behavior

Keyboard focus should remain in the area I’m typing, not switch.

Operating System

Windows 10/11
MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.42 (Universal)
VSCode Version: 1.105.1
Commit: 2e353c5f5b30150ff7b874dee5a87660693d9de0
Date: 2025-12-01T02:18:26.377Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. It looks like an extension side effect.

To help narrow it down:

  • Which OS is it consistently reproducing on from the ones you mentioned, Windows or macOS?
  • Which Test Explorer are you using and which test runner/extension is active (e.g., Jest, Vitest, Python, etc.)?
  • List of enabled extensions: please attach a screenshot of the Extensions panel filtered by @enabled
  • Try with extensions disabled: launch Cursor from the terminal with cursor --disable-extensions and let me know if it still reproduces
  • Open Help > Toggle Developer Tools, go to the Console tab, collect logs at the moment focus jumps, and attach them
  • A short video or step-by-step actions when it happens most often (during debugging at a breakpoint, on file save, etc.)

As a temporary workaround, try closing or minimizing the Test Explorer and tell me if the issue disappears. Let me know if that helps.

“Consistently” is hard to say; I don’t have specific repro steps yet. However, coworkers with both macOS and Windows are experiencing this.

Which Test Explorer are you using and which test runner/extension is active (e.g., Jest, Vitest, Python, etc.)?

I was unaware that there are multiple Test Explorers; I’m referring to the built-in “Test Explorer” pane in the sidebar, with the Erlenmeyer flask icon. It is a Python-based project we’re working on, using Pytest. Here are the installed extensions:

anysphere.cursorpyright
anysphere.remote-ssh
charliermarsh.ruff
davidanson.vscode-markdownlint
eamodio.gitlens
earshinov.permute-lines
grafana.vscode-jsonnet
gruntfuggly.todo-tree
iliazeus.vscode-ansi
mechatroner.rainbow-csv
ms-python.debugpy
ms-python.python
ms-toolsai.datawrangler
ms-toolsai.jupyter
ms-toolsai.jupyter-renderers
ms-toolsai.vscode-jupyter-cell-tags
ms-toolsai.vscode-jupyter-slideshow
redhat.vscode-yaml
tamasfe.even-better-toml
tht13.html-preview-vscode
tintinweb.graphviz-interactive-preview
uctakeoff.vscode-counter
william-voyek.vscode-nginx

Try with extensions disabled: launch Cursor from the terminal with cursor --disable-extensions and let me know if it still reproduces

This will be hard to do, as it’s hard to reproduce normally, and working extensively without these extensions is generally infeasible.

Open Help > Toggle Developer Tools, go to the Console tab, collect logs at the moment focus jumps, and attach them

Will do.

As a temporary workaround, try closing or minimizing the Test Explorer and tell me if the issue disappears. Let me know if that helps.

This is known to be fine. Neither I nor coworkers have experienced this problem when the Test Explorer is not visible in the sidebar. It only occurs when the Test Explorer is open.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.