Skip to content

Release 1.2.1 with native plugin hooks#46

Merged
sf-jin-ku merged 1 commit into
mainfrom
jin/plugin-hooks-1.2.1
May 12, 2026
Merged

Release 1.2.1 with native plugin hooks#46
sf-jin-ku merged 1 commit into
mainfrom
jin/plugin-hooks-1.2.1

Conversation

@sf-jin-ku
Copy link
Copy Markdown
Contributor

Summary

  • switch cc installs/setup to Codex native plugin_hooks and bundled hooks/hooks.json
  • remove supported local checkout/stable-root install flow and keep installer on marketplace/cache path
  • update README, skills, tests, changelog, and version metadata for 1.2.1

Verification

  • npm run lint
  • npm run typecheck
  • npm run check:version-sync
  • npm run check:changelog
  • npm run test
  • npm run test:integration
  • npm run test:e2e
  • npm pack --dry-run
  • installed current checkout through temporary sendbird-local-121 marketplace into ~/.codex and verified setup --json ready with native plugin hooks enabled

Copy link
Copy Markdown

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

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: 0c1b14c4c4

ℹ️ 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 thread scripts/installer-cli.mjs
async function installOrUpdate() {
const marketplaceConfig = resolveInstallerMarketplaceConfig();
const hooksChanged = configureNativePluginHooks();
cleanupLegacyLocalInstall();
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 Remove legacy cc plugin sections during install migrations

During install/update, the migration cleanup removes legacy files and marketplace entries but never removes old [plugins."cc@..."] config blocks, so users upgrading from the previous local-install flow can end up with both cc@local-plugins and cc@sendbird enabled while the legacy plugin root has already been deleted. That leaves an orphaned enabled plugin section pointing to a removed install and can cause plugin loading conflicts or startup failures on upgraded setups; the install migration path should also call the same config-section cleanup currently used by uninstall.

Useful? React with 👍 / 👎.

Comment thread scripts/installer-cli.mjs
if (!fs.existsSync(PERSONAL_MARKETPLACE_FILE)) {
return;
}
const parsed = JSON.parse(fs.readFileSync(PERSONAL_MARKETPLACE_FILE, "utf8"));
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 Guard cleanup against malformed personal marketplace JSON

removePersonalMarketplaceCcEntries() does an unconditional JSON.parse of ~/.agents/plugins/marketplace.json, and this cleanup now runs on every install/update/uninstall. If that user-managed file is malformed (even unrelated to cc), the installer now throws and aborts before it can install or uninstall the plugin, which is a regression in robustness for normal upgrade paths. This parse should be wrapped defensively (e.g., ignore or warn on invalid JSON) so unrelated marketplace corruption does not brick installer operations.

Useful? React with 👍 / 👎.

@sf-jin-ku sf-jin-ku force-pushed the jin/plugin-hooks-1.2.1 branch from 0c1b14c to 3f47a34 Compare May 12, 2026 04:59
@sf-jin-ku sf-jin-ku merged commit fd9379c into main May 12, 2026
5 checks passed
@sf-jin-ku sf-jin-ku deleted the jin/plugin-hooks-1.2.1 branch May 12, 2026 05:02
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