Skip to content

fix: add hooks config schema version#5

Open
caipira113 wants to merge 1 commit into
supermemoryai:mainfrom
caipiralink:fix/hooks-config-version
Open

fix: add hooks config schema version#5
caipira113 wants to merge 1 commit into
supermemoryai:mainfrom
caipiralink:fix/hooks-config-version

Conversation

@caipira113

Copy link
Copy Markdown

Summary

  • Add the top-level version: 1 field to hooks/hooks.json.
  • Align the plugin hooks config with Cursor's documented hooks schema.

Why

Without the schema version in the hooks config, Cursor did not load the plugin's sessionStart/sessionEnd hooks, while the plugin's rules, skills, and commands were recognized and loaded correctly. Adding version: 1 fixed the hook loading.

Observed on Cursor 3.11.19.

Reference: https://cursor.com/docs/hooks#global-configuration-options

Test plan

  • python3 -m json.tool hooks/hooks.json
  • bun install --frozen-lockfile
  • bun run typecheck
  • bun run build

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant