Autocomplete in Jupyter Notebook sometimes turns off Enter and arrow keys

I cannot reliably reproduce this, but it happens often enough to be a problem:

At some point after accepting or rejecting a suggestion, the Enter and arrow keys all stop working. The only solution that works reliably is to run “Developer: Reload Window” from the Command Palette, which kills any Jupyter state.

This has been happening despite running the latest version of Cursor over the past two months.

Version: 0.42.1
VSCode Version: 1.93.1
Commit: 8799bbe3563e149fa2064a4aa75344c5b6800bf0
Date: 2024-10-11T02:21:39.098Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

This happens to me frequently as well. I use Jupyter notebooks a lot and this happens maybe once an hour, and is quite frustrating.

Version: 0.42.1
VSCode Version: 1.93.1
Commit: 8799bbe3563e149fa2064a4aa75344c5b6800bf0
Date: 2024-10-11T02:21:39.098Z (1 day ago)
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

This has also started happening for me in regular Python files as well.