fix(cursor): run sessionStart via run-hook.cmd on Windows#1280
Closed
hhalperin wants to merge 1 commit into
Closed
fix(cursor): run sessionStart via run-hook.cmd on Windows#1280hhalperin wants to merge 1 commit into
hhalperin wants to merge 1 commit into
Conversation
Cursor hooks pointed at the extensionless bash session-start script; on Windows the handler often opens the file in an editor or shows Open with on each new Agent session. Delegates to the existing run-hook.cmd dispatcher (same as Claude Code hooks) so Git Bash runs the script. Made-with: Cursor
Collaborator
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Windows, \hooks-cursor.json\ pointed at the extensionless bash \session-start\ script. The OS/Cursor hook runner often does not execute it as bash, so the file is opened in the default app (editor) or triggers an Open with dialog on each new Agent chat (\sessionStart).
Change
Use the existing
un-hook.cmd\ dispatcher (same as Claude Code \hooks.json) so Git Bash runs \session-start\ and prints JSON as intended.
Verification
un-hook.cmd session-start\ with \CURSOR_PLUGIN_ROOT\ set; stdout is valid JSON with \�dditional_context.
Made with Cursor