Skip to content

fix(hooks): add required version field to cursor hooks.json#255

Merged
wey-gu merged 2 commits into
nowledge-co:mainfrom
Dongdong-Dong9010:main
May 20, 2026
Merged

fix(hooks): add required version field to cursor hooks.json#255
wey-gu merged 2 commits into
nowledge-co:mainfrom
Dongdong-Dong9010:main

Conversation

@Dongdong-Dong9010

@Dongdong-Dong9010 Dongdong-Dong9010 commented May 18, 2026

Copy link
Copy Markdown
Contributor

Problem

After installing nowledge-mem-cursor, Cursor's Hooks settings show a Configuration Error (see screenshot):

Invalid hooks.json found — We detected a hooks.json file that could not be loaded.

Plugin nowledge-mem-cursor hooks: Config version must be a number
As a result, the plugin's sessionStart hook never loads, and read_working_memory is not invoked at the start of a Cursor session.

Root cause

hooks/hooks.json was missing the top-level version field. Cursor's hooks loader validates version as a number; when it is undefined, the whole config is rejected.

Clipboard_Screenshot_1779095629

Summary by CodeRabbit

  • Chores
    • Added a top-level configuration version for plugin hooks to ensure hook configs are recognized.
    • Bumped the integration and plugin release to v0.1.5.
    • Updated the changelog with the 0.1.5 entry documenting the hook config version addition.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b60a0571-4156-4fd7-95f3-6268566c363e

📥 Commits

Reviewing files that changed from the base of the PR and between 6d42bda and 8b404f6.

📒 Files selected for processing (3)
  • integrations.json
  • nowledge-mem-cursor-plugin/.cursor-plugin/plugin.json
  • nowledge-mem-cursor-plugin/CHANGELOG.md
✅ Files skipped from review due to trivial changes (2)
  • nowledge-mem-cursor-plugin/.cursor-plugin/plugin.json
  • nowledge-mem-cursor-plugin/CHANGELOG.md

📝 Walkthrough

Walkthrough

Adds a top-level "version": 1 to the plugin hooks config, increments the plugin and integrations versions to 0.1.5, and records the change in the plugin CHANGELOG.

Changes

Hooks & Versioning

Layer / File(s) Summary
Version field addition
nowledge-mem-cursor-plugin/hooks/hooks.json
Adds a top-level version: 1 field to the hooks configuration.
Plugin manifest and registry bump
nowledge-mem-cursor-plugin/.cursor-plugin/plugin.json, integrations.json
Updates the Cursor plugin version from 0.1.4 to 0.1.5 in both the plugin manifest and the integrations registry.
Changelog update
nowledge-mem-cursor-plugin/CHANGELOG.md
Adds a 0.1.5 entry noting the hooks.json version field addition.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • nowledge-co/community#174: Introduced the Cursor sessionStart hook configuration and validation related to hooks/hooks.json.

Poem

A little rabbit hops with glee,
A version found its place — one, two, three? One! 🐇
Manifests hum a tiny tune,
Changelog notes the morning rune,
Hooks aligned beneath the sun. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding the required version field to hooks.json to fix a validation error.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@wey-gu wey-gu merged commit ce766b3 into nowledge-co:main May 20, 2026
1 check passed
@wey-gu

wey-gu commented May 20, 2026

Copy link
Copy Markdown
Member

Thank you @Dongdong-Dong9010, this small schema fix matters a lot for install reliability. Appreciate you helping keep the Cursor plugin clean and working for users.

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.

2 participants