Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When opening the AI chat panel to start a new chat session, Windows displays a “Select an app to open” dialog. The dialog alternates between asking to open a “session-start” file and asking to open a .sh file. This suggests Cursor is attempting to execute shell scripts via the OS default file handler rather than routing them through an internal shell interpreter. Since Windows has no native .sh handler, the OS falls back to the app picker dialog.
Previously, this only occurred when starting a new chat thread or running a custom command (e.g. a slash command). Now it triggers every time the chat panel is opened, even before sending a message.
The chat itself still functions normally after dismissing the dialog. This is purely an extreme annoyance, not a functional blocker.
Steps to Reproduce
- Open Cursor on Windows
- Open the AI chat panel (Ctrl+L) or start a new agent session
- Windows “Select an app to open” dialog appears, referencing either session-start or a .sh file
- Dismiss the dialog, chat works normally after
Expected Behavior
Chat should open without triggering the Windows file association dialog. Any internal shell scripts should be executed through Cursor’s bundled shell/Node environment, not passed to the OS file handler.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 2.6.20 (user setup)
VSCode Version: 1.105.1
Commit: b29eb4ee5f9f6d1cb2afbc09070198d3ea6ad760
Date: 2026-03-17T01:50:02.404Z
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
N/A
For AI issues: add Request ID with privacy disabled
N/A
Additional Information
- Machine is domain-joined via Active Directory, which may enforce file association group policies, although this issue only recently started happening for the first time.
- Git for Windows is installed and appears in the “Suggested apps” list in the dialog
- WSL is installed
- The issue worsened over time: initially only triggered on new threads with slash commands, now triggers on any chat panel open
Does this stop you from using Cursor
No - Cursor works, but with this issue
