Skip to content

fix: match cordis.patch.yml name to @jiangzhenguo/dsh-codegraph - #8

Merged
jiangzhenguo merged 2 commits into
mainfrom
cursor/fix-cordis-patch-name-b0a5
Oct 16, 2026
Merged

jiangzhenguo merged 2 commits into
mainfrom
cursor/fix-cordis-patch-name-b0a5

Conversation

@jiangzhenguo

@jiangzhenguo jiangzhenguo commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Fixes #7.

v1.2.1 published this package as @jiangzhenguo/dsh-codegraph (the unscoped npm name was already taken), but the bundle patch still inserted name: dsh-codegraph. That field is the loader's bare-module specifier, not a label: the host resolves and imports it as a package root. After the rename, dsh-codegraph is not installed in the profile, so the insert fails to mount. Install exits cleanly and restarts do not recover it.

The patch name has to be the same string as package.json "name", because that is the module pnpm actually installs. This change sets it to @jiangzhenguo/dsh-codegraph. The entry id is unchanged.

Version is bumped 1.2.1 → 1.2.2, matching this repo's patch-bump practice for bugfixes (see v1.2.1). There is no changelog or lockfile to update.

Test plan

  • Confirm cordis.patch.yml name is @jiangzhenguo/dsh-codegraph, matching package.json.
  • Confirm package.json version is 1.2.2.
  • Install into a profile and confirm the plugin mounts and registers the codegraph_* tools.
Open in Web Open in Cursor 

Note

Low Risk
Packaging and bundle metadata only; no runtime logic changes beyond fixing plugin resolution on install.

Reviewed by Cursor Bugbot for commit 6f983e7. Bugbot is set up for automated code reviews on this repo. Configure here.

cursoragent and others added 2 commits October 16, 2026 02:28
The v1.2.1 rename left the bundle patch importing the unscoped package,
so the loader never mounts the plugin. Fixes #7.

Co-authored-by: jiangzhenguo <jiangzhenguo@users.noreply.github.com>
1.2.1 shipped the unscoped cordis.patch.yml name. This bugfix follows the
repo's patch-bump practice (1.2.0 → 1.2.1). No changelog or lockfile to sync.

Co-authored-by: jiangzhenguo <jiangzhenguo@users.noreply.github.com>
@jiangzhenguo
jiangzhenguo marked this pull request as ready for review October 16, 2026 02:34
@jiangzhenguo
jiangzhenguo merged commit 22f63bd into main Oct 16, 2026
2 of 4 checks passed
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.

v1.2.1 改名后 cordis.patch.yml 里的 name 未同步,导致插件永远无法加载(安装无报错 / 重启无效)

2 participants