Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The continual-learning plugin’s stop hook fails with:
error: Module not found “./hooks/continual-learning-stop.ts”
The plugin’s hooks.json runs bun run ./hooks/continual-learning-stop.ts --trial, and that path is resolved from the workspace root instead of the plugin install directory. The script lives in the plugin folder, so it isn’t found.
Steps to Reproduce
- Install the continual-learning plugin in Cursor IDE.
- Start or stop an agent session that triggers the plugin’s stop hook.
- Observe the error: Module not found “./hooks/continual-learning-stop.ts”
Expected Behavior
The hook command should either use a path relative to the plugin install directory or otherwise ensure the script is found without per-workspace copies.
Workaround: Copy continual-learning-stop.ts from the plugin into each workspace’s hooks/ folder.
Operating System
MacOS
Version Information
IDE: Version 2.5.26
Does this stop you from using Cursor
No - Cursor works, but with this issue