Skip to content

feat: version-gate Cursor auto-update by plugin version#6

Open
nitantSystango wants to merge 1 commit intomainfrom
feat/version-gated-cursor-auto-update
Open

feat: version-gate Cursor auto-update by plugin version#6
nitantSystango wants to merge 1 commit intomainfrom
feat/version-gated-cursor-auto-update

Conversation

@nitantSystango
Copy link
Copy Markdown
Collaborator

@nitantSystango nitantSystango commented Apr 29, 2026

Summary

  • Replace interval-based auto-update in the Cursor session-start hook with version-gated updates using .claude-plugin/plugin.json.
  • Fetch upstream, compare local vs remote version, and run pull + sync-cursor.sh only when the remote version is newer.
  • Add optional diagnostics via AGENT_SKILLS_UPDATE_LOG=1 to record update decisions and failures in a state log.

Test plan

  • Run bash -n hooks/cursor-session-start.sh
  • Confirm no lints reported for hooks/cursor-session-start.sh
  • Validate runtime behavior by starting a new Cursor session with AGENT_SKILLS_UPDATE_LOG=1
  • Validate no-op path when remote version is not newer

Update the session-start hook to fetch upstream metadata and only pull/sync when the remote plugin version is newer than local, with optional update diagnostics for troubleshooting.
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