SuperPower Plugin - Session-Start application prompt

Where does the bug appear (feature/product)?

Somewhere else…

Describe the Bug

Environment

  • OS: Windows 10/11 (build: ___)
  • Cursor version: ___

Actual
Windows shows “How do you want to open this file?” for:

C:\Users\<user>\.cursor\plugins\cache\cursor-public\superpowers\<hash>\hooks\session-start

Notes / hypothesis

  • session-start is a bash hook script with no file extension (intentional in Superpowers for Claude Code compatibility; see plugin’s run-hook.cmd comments).
  • hooks-cursor.json configures: "command": "./hooks/session-start".
  • On Windows, if the host invokes this like a document “open” instead of executing via bash/run-hook.cmd, the shell has no handler for extensionless files → Windows shows the picker.
  • Suggest: on Windows, run Cursor hooks that point at extensionless scripts through the same pattern as Claude Code (run-hook.cmd session-start) or equivalent bash.exe invocation.

Plugin reference

  • Superpowers: hooks/hooks-cursor.jsonsessionStart./hooks/session-start
  • Same plugin ships hooks/run-hook.cmd for Windows-safe bash execution of that script.

Steps to Reproduce

Steps to reproduce

  1. Install/enable the Superpowers plugin (cursor-public marketplace).
  2. Use agent sessions as normal.
  3. Use “Archive all” (or equivalent) for agent sessions.

Expected Behavior

Expected
Archiving completes with no OS file-association dialog.

Operating System

Windows 10/11

Version Information

Version: 2.6.22 (user setup)
VSCode Version: 1.105.1
Commit: c6285feaba0ad62603f7c22e72f0a170dc8415a0
Date: 2026-03-27T15:59:31.561Z
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

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this is a known issue. It’s the third report in the last month. On Windows, Cursor tries to run an extensionless bash script directly via PowerShell, and Windows doesn’t know what to do with it, so it shows the “Select an app to open” dialog.

A detailed breakdown and a workaround using a PowerShell wrapper is here: Windows “Select an app to open” dialog triggers when opening AI chat Windows "Select an app to open" dialog triggers when opening AI chat (.sh file handler issue). It’s a post by @Emrah with a step by step fix using session-start.ps1.

The team knows that hooks from external plugins on Windows need platform aware handling. There’s no ETA yet, but your report helps with prioritization.

Closing as a duplicate. The full discussion and workaround are in the thread above. Let me know if the workaround doesn’t work.

A post was merged into an existing topic: Windows “Select an app to open” dialog triggers when opening AI chat (.sh file handler issue)