Skip to content

docs(audits): local vs marketplace hook delivery re-read; Remote-SSH probe reproduces #407 on 3.19.3 - #500

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
docs/cursor-hooks-remote-ssh-observation
Sep 4, 2026
Merged

ScriptedAlchemy merged 1 commit into
mainfrom
docs/cursor-hooks-remote-ssh-observation

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Docs-only. Adds §7 to docs/audits/2026-09-03-cursor-plugin-hooks-registration.md.

Why

The maintainer asked whether agent-bundle should install into Cursor as a marketplace plugin because marketplace-installed plugins fire hooks and user-local installs do not. The record was re-read against that premise and a non-interactive probe was run on this machine's live Cursor (Remote-SSH, client and server 3.19.3).

What the section records

  • Desktop windows (3.18.25): user-local plugin hooks fire — §3 (isolated instance) and Cursor's own hooks log on the maintainer's instance (Executing hook … from claude-plugin config, Running script in directory: ~/.cursor/plugins/local/{tracedecay,cargo-hauler}, 198 of 220 plugin hook executions in the agent-bundle window). Marketplace hooks were never observed instead of local ones; the marketplace state cannot be produced by an installer (§4–§5, unchanged).
  • Remote-SSH windows (3.19.3): the remote extension host loads local plugins (loadUserLocalPlugin ab-hooks-probe loaded … 0 failures), but their hooks never ran on the remote host across seven concurrent conversations, while identical commands from a remote ~/.cursor/hooks.json ran within seconds (28 events, cursor_version: "3.19.3"). This reproduces Cursor pack: manifest-declared hooks never fire for tool events (Cursor 3.16) — emitted installer must register hooks in ~/.cursor/hooks.json so the plugin works out of the box #407 (filed from ~/.cursor-server). Whether marketplace plugin hooks run in Remote-SSH windows, and on which machine, was not observed; the asymmetry hypothesis is labelled as such.
  • §7.3: the exact matrix a complete proof needs (two hosts, three plugin placements, marker files on both filesystems, which logs to read).

No install-path change: --mode local stays the default, --mode marketplace stays the staged Customize hand-off.

Refs #407, #424.

Review status

Docs-only; skip-changeset. No review re-request is posted per maintainer instruction.

@ScriptedAlchemy ScriptedAlchemy added the skip-changeset PR changes a publishable package but ships no observable change; changeset not required label Sep 4, 2026
@changeset-bot

changeset-bot Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b17c7bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-04T01:25:35.606280Z 224c188 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@500
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/create-agent-bundle@500
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/runtime@500

commit: b17c7bd

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 224c18820f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +304 to +306
Until that matrix is filled in, the install default stays `--mode local`
(hooks proven on desktop windows, no UI step), `--mode marketplace` stays the
staged Customize hand-off, and Doctor keeps proving registration (`AB7322`)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stop treating static hook shape as Remote-SSH delivery proof

In the Remote-SSH scenario established above, inspectCursorPluginHooks only parses the manifest and checks script existence, but its AB7322 message says Cursor runs and delivers the hooks and its duplicate check advises removing ~/.cursor/hooks.json (packages/agent-bundle/src/install/cursor-hooks-registration.ts:349-445). The probe shows that manifest hooks produce no events while that user-level file is the working delivery path, so keeping Doctor unchanged reports the broken install as registered and can tell users to delete their only functioning workaround; the diagnostic must distinguish static manifest validity from actual Remote-SSH delivery.

Useful? React with 👍 / 👎.

Comment on lines +265 to +269
Read-out: in a Remote-SSH window the remote extension host loads local
plugins from the remote `~/.cursor/plugins/local`, but their hooks are not
executed on the remote host, while user-level `~/.cursor/hooks.json` on the
remote is. This reproduces #407 (also `~/.cursor-server`) on a current build
and is independent of the emitted shape (the probe was hand-written).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reconcile the canonical Cursor capability evidence

This newly recorded Remote-SSH reproduction contradicts the canonical capability source at packages/agent-bundle/src/adapters/capabilities/cursor-2026-08-28.json:610, which still says the ~/.cursor-server report is not reproducible and attributes it to a vendor-fixed gap. Because that JSON is the source used by the adapters and generated reference pages, leaving it unchanged preserves the obsolete conclusion even after this audit disproves it; scope or replace that evidence in the same change.

AGENTS.md reference: AGENTS.md:L78-L85

Useful? React with 👍 / 👎.

@ScriptedAlchemy
ScriptedAlchemy force-pushed the docs/cursor-hooks-remote-ssh-observation branch from 224c188 to c250539 Compare September 4, 2026 01:28
@ScriptedAlchemy
ScriptedAlchemy force-pushed the docs/cursor-hooks-remote-ssh-observation branch from c250539 to b17c7bd Compare September 4, 2026 01:34
@ScriptedAlchemy
ScriptedAlchemy merged commit 6938c68 into main Sep 4, 2026
13 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the docs/cursor-hooks-remote-ssh-observation branch September 4, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changeset PR changes a publishable package but ships no observable change; changeset not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant