Every time I open a new chat, a ‘Choose how to open’ popup appears. Has anyone else encountered this issue? If so, how did you resolve it?
Hey, I can see from the screenshot that this is the Windows app picker dialog. It looks like your .ps1 file association is broken, you can see it’s a PowerShell script at the bottom of the screen. When Cursor initializes the terminal, Windows doesn’t know what to open that file with, so it shows this popup.
The easiest fix is next time the popup appears:
- Select Cursor in the list
- Check Always use this app if it’s available
- Click OK
Or go to Windows Settings > Apps > Default apps > Choose defaults by file type, find .ps1, and set the app for it.
Let me know if that doesn’t help.
I tried choosing to open it with Cursor and noticed a script called ‘session-start’ running from the ‘superpowers’ extension directory (which I installed recently). Uninstalling that extension fixed the issue. Also, the PowerShell in the earlier screenshot was just a terminal I opened manually—sorry for the confusion. Everything is working now. Thanks for your help.
Glad you got it sorted out! The Superpowers plugin does use the session-start bash script as a hook, and Windows doesn’t know what to open it with, so you get that popup.
If you want to add the plugin back later, you don’t have to remove it. You can create a PowerShell wrapper instead. There’s a detailed guide here: Windows "Select an app to open" dialog triggers when opening AI chat (.sh file handler issue) - #8 by Emrah
Marking this thread as solved.

