Popup appears when start new chat

Every time I start a new chat, I get a popup asking me to choose how to open it. Has anyone else had this problem? If so, how did you fix it?

This is a Windows file association issue, not a Cursor setting. When Cursor opens a new chat, it’s triggering a file (likely a .ps1 PowerShell script, visible at the bottom of your screenshot) that doesn’t have a default program set in Windows.

Here’s how to fix it:

Option 1 — Set default app for the file type (recommended)

  1. Open Windows Settings → Apps → Default apps

  2. Scroll down and click “Choose defaults by file type”

  3. Find .ps1 (or whatever file type is triggering it)

  4. Set the default to Cursor or Notepad — whichever you prefer

Option 2 — Fix it directly from the dialog

Next time the popup appears:

  1. Select Cursor from the list

  2. Check “Always use this app” (if that checkbox is available)

  3. Click 确定 (OK)

Option 3 — Via Registry (for .ps1 files specifically)

PowerShell files often lose their association. Open PowerShell as Admin and run:

ftype Microsoft.PowerShellScript.1="%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "& '%1'"
assoc .ps1=Microsoft.PowerShellScript.1

The root cause is that Windows doesn’t know which program “owns” that file type, so it asks every time Cursor tries to open it. Setting a default once will stop the popup permanently.

I tried selecting Cursor as the opening method and saw a script named ‘session-start’ open. This script was located in the ‘superpowers’ plugin directory (I recently installed this plugin in Cursor). The issue was resolved after I uninstalled the ‘superpowers’ plugin. The PowerShell window you saw in the previous screenshot was opened manually by me; I apologize for the confusion. The problem is fixed now. Thank you for your reply.

1 Like