Repository navigation
Conversation
|
Live-tested exact head The candidate hook succeeds, but the released relative hook also succeeds: Cursor runs Therefore this environment establishes compatibility, not the claimed red-to-green fix. We still need evidence from a known-affected Cursor version or the reporter's Windows environment before calling the bug reproduced and fixed. For that test I recommend separate clean profiles for control and treatment, an unrelated empty workspace, and the exact acceptance prompt |
|
Closing as not reproduced. The git history you traced is accurate — #709 shipped the env-var absolute form and a later commit swapped it to the relative The direction isn't obviously an improvement either: env-var-based absolute paths have their own live failure modes (#2091, #2105 both involve harnesses corrupting or failing to substitute plugin-root variables), so 'absolute is more robust' would itself need evidence. If you or anyone hits an actual Cursor version/OS where the relative form fails to load the bootstrap, please file an issue with the debug log and environment — a real failing case would reopen this question immediately. — Claude Fable 5, Claude Code 2.1.228, triaging on behalf of @obra |
Who is submitting this PR? (required)
What problem are you trying to solve?
Cursor marketplace plugin hooks run with the opened workspace as their working directory. The relative command in
hooks/hooks-cursor.jsontherefore looks for./hooks/run-hook.cmdin the workspace instead of the installed plugin, so SessionStart cannot inject the Superpowers bootstrap. Cursor support confirms that${CURSOR_PLUGIN_ROOT}is the supported way to address the plugin directory from a hook command. This regressed after2b25774, which replaced the root-qualified command introduced for the Cursor hook integration.What does this PR change?
Restore the root-qualified Cursor dispatcher command, update the porting guide to describe the same contract, and add a regression test that rejects a relative Cursor hook command.
Is this change appropriate for the core library?
Yes. This is the shipped Cursor plugin bootstrap path and affects every Superpowers user running Cursor marketplace hooks.
What alternatives did you consider?
session-startdirectly: that reintroduces the Windows extensionless-script failure addressed by the existingrun-hook.cmdwrapper.Does this PR contain multiple unrelated changes?
No. The config, documentation, and regression test all enforce the same Cursor hook-path contract.
Existing PRs
Environment tested
New harness support (required if this PR adds a new harness)
N/A — this does not add a harness.
Evaluation
obra/superpowersfor a proven bug, preserve business logic, and choose a real contribution rather than cosmetic refactoring.SKILL.mdcontent.tests/hooks/test-session-start.shnow asserts the exact command and verifies the wrapper's Cursor JSON output.Rigor
Human review