# Windows "Select an app to open" dialog triggers when opening AI chat (.sh file handler issue)

**URL:** <https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428>\
**Category:** Bug Reports\
**Tags:** windows, chat\
**Created:** [March 20, 2026, 8:46pm UTC](https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428 "2026-03-20T20:46:01Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Blue\_Raja](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/blue_raja/32/112121_2.png) [@Blue\_Raja](https://forum.cursor.com/u/Blue_Raja)\
**Post date:** [June 19, 2026, 6:50pm UTC](https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428/32 "2026-06-19T18:50:51Z")

</div>

I am also still seeing the same issue in the latest Cursor (3.8.11), with the Superpowers plugin installed.

 ![2026-06-19 11_51_53-NVIDIA GeForce Overlay DT](https://us1.discourse-cdn.com/cursor1/original/3X/1/a/1ac0087239a7bf460b05590645df752c56f54dd9.png)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 20, 2026, 6:21pm UTC](https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428/33 "2026-06-20T18:21:26Z")

</div>

Hey @Blue_Raja, the screenshot from the Hooks panel shows the cause: the Superpowers plugin registers `sessionStart` → `./hooks/session-start`. That’s a bash script with no file extension, and Windows doesn’t know what to open it with. That’s why you see the “Select an app to open” dialog every time a session starts.

Two options:

1. Easiest: remove the Superpowers plugin (and Ralph Loop too, if you have it). The OP in that thread did this and the dialogs stopped.
2. If you want to keep the plugin: there’s a workaround using a small PowerShell wrapper. Follow @Emrah’s step by step guide here: [Windows "Select an app to open" dialog triggers when opening AI chat (.sh file handler issue) - #8 by Emrah](https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428/8)

One important note: we’ve improved how hooks run on Windows over the last few weeks, but updating Cursor alone won’t fix this. As long as the plugin points to a bare `./hooks/session-start` with no extension, the dialog will keep showing up. To fully fix it, the plugin needs to point to a Windows safe entry point like `run-hook.cmd` or a `.ps1` file. This is a known limitation, and I can’t share an ETA for a fix on our side yet.

Let me know if the workaround helped.

---

<div class="post-metadata">

**Author:** ![gergy95](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gergy95](https://forum.cursor.com/u/gergy95)\
**Post date:** [June 23, 2026, 5:39pm UTC](https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428/34 "2026-06-23T17:39:27Z")

</div>

Just a heads up, the Amazon AWS Deployments skill causes this to happen also. Just removed it now, issue gone.

[Previous page](https://forum.cursor.com/t/windows-select-an-app-to-open-dialog-triggers-when-opening-ai-chat-sh-file-handler-issue/155428.md?page=1)
