Edit (CTRL+K) fails on large files

CTRL+K for “Edit with AI” works fine on small files, but when I open an large file (40k lines), it jumps the editor focus to the end of the file, and the edit box never pops up, even when I scroll back to where I was. It occurs on both CTRL+K, or when I click the “Edit” button that pops up when you highlight a line or some code. I am still able to “add to chat” in the same manner.

This is consistent behavior across multiple restarts.

Version: 0.42.4
VSCode Version: 1.93.1
Commit: b1e87884330fc271d5eb589e368c35f14e76dec0
Date: 2024-10-29T17:17:29.347Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.9.3-76060903-generic