Critical: Python Go to Definition still broken in Agents Window after four months

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This is a critical usability issue that has remained unresolved for approximately four months. Reports date back to April, and the problem persisted throughout May, June, and July.

Python Go to Definition works in the classic IDE but does not work in Agents Window.

My configuration is working correctly in the IDE:

  • Microsoft Python and Cursor Pyright are installed and running.
  • The project’s .venv interpreter is selected.
  • The Agents Window LSP toggle is enabled.
  • F12 works in the classic IDE.

In Agents Window, F12 reports “No definition found.” It also fails for Python standard-library symbols such as pathlib.Path, demonstrating that this is not caused by the project’s imports, source layout, or virtual environment.

I have tried:

  • Disabling and re-enabling the LSP toggle
  • Closing and reopening files
  • Restarting Cursor Pyright
  • Reloading Cursor
  • Reinstalling Microsoft Python and Cursor Pyright
  • Removing Pylance to eliminate conflicts
  • The behavior remains unchanged.

Previous related discussions:

Please confirm whether this is actively tracked and provide its current status, target release, or approximate ETA.

Steps to Reproduce

  1. Install and enable Microsoft Python (ms-python.python) and Cursor Pyright (anysphere.cursorpyright).
  2. Open a Python workspace with a valid virtual environment.
  3. Select that virtual environment in the classic IDE.
  4. Open a Python file containing:
    from pathlib import Path
    path = Path(".")
    
  5. Place the cursor on Path and press F12 in the classic IDE.
  6. Confirm that Go to Definition works.
  7. Open the same workspace and file in Agents Window.
  8. Enable the LSP toggle in the file tab.
  9. Place the cursor on the same Path symbol and press F12.
    Actual result: Agents Window reports “No definition found.”

Expected Behavior

With LSP enabled, F12 and Go to Definition should work consistently between the classic IDE and Agents Window.

Agents Window should navigate to definitions for:

  • Symbols defined in the same file
  • Symbols imported from project files
  • Python standard-library symbols
  • Symbols from installed dependencies

Operating System

MacOS

Version Information

Version: 3.15.6 (Universal)
VS Code Extension API: 1.128.0
Commit: a1f686545fd0ce8917bbd2449f733551a9bce420
Date: 2026-08-06T01:41:03.876Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the detailed report with steps and the version. That really helps.

Confirmed. What you described is a known limitation of LSP in the Agents Window for Python, and we’re tracking it. This isn’t an issue with your setup. Your venv, interpreter, and the toggle are set correctly, so toggling, reinstalling, or restarting won’t help here. The fact that F12 fails even on pathlib.Path fits this as well.

Status and ETA: I can’t share a specific timeline yet. I’ll post in the thread once there’s an update.

For now, the only reliable way to navigate Python code with Go to Definition, F12, or Cmd+Click is the classic Editor window, where it already works for you. In the Agents Window, there’s no working workaround for Python at the moment.

Let me know if you notice any new behavior.