Skip to content

fix(plugins): honor native OMP marketplace builds - #588

Merged
runkids merged 4 commits into
mainfrom
runkids/fix-omp-marketplace-build
Oct 20, 2026
Merged

runkids merged 4 commits into
mainfrom
runkids/fix-omp-marketplace-build

Conversation

@runkids

@runkids runkids commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only)

Linked Issue

Closes #587

Summary

OMP marketplace exists → use its build, never fall back to Claude
OMP marketplace absent → keep legacy Claude compatibility
same plugin name       → preserve each target's path and marketplace

Recognize package.json plugins declaring omp.extensions or compatible pi.extensions. Text discovery shows distinct build rows; JSON retains one logical candidate with per-target metadata. Preserve explicit OMP catalog versions through previews, cache identity and generated native catalogs, including legacy fallback. Dashboard discovery shows each target's own version, components and build path. Shared versions are retained only when all supported targets agree, so no-Agent records/list rows do not claim an arbitrary build version. Local Cursor/Antigravity inventory continues to use the native target's version. Preserve native adoption, Claude-defined components and manifestless Claude support in hybrid/shared-folder packages. Sync the English plugin docs, four existing translations and built-in reference.

Evidence

  • Before: regressions reproduced the wrong OMP build/version and combined discovery row, plus dropped metadata in hybrid/shared-folder packages.
    After: native OMP version/components/path, global/project materialization, Claude adoption and separate text rows pass focused unit/integration coverage.

  • GitHub CI at a329841: all seven executed checks passed; redteam-signal skipped by workflow.

  • make check in the devcontainer: passed again after Codex fixes; focused plugin integration tests also passed after rebuilding.

  • UI: existing PluginAddDialog tests (6), lint and production build passed. Lint/build retain existing warnings. React Doctor changed-scope scan: 90/100, no new issues.

  • Browser discovery check with a mocked API response: reproduced the merged version/components before the fix; asserted separate Claude 0.1.0/hooks and OMP 2.0.0/extensions metadata after it. Screenshots checked Clean/Playful light/dark and a 390px viewport. No install request was submitted.

  • Website npm run build in the devcontainer: passed for English, Japanese, Korean, Simplified Chinese and Traditional Chinese.

  • python3 scripts/ai-context.py check and git diff --check: passed.

  • Two Go overlay mutation checks deliberately disabled catalog authority and extension detection; each made its regression fail. Unmodified OMP tests pass.

  • Independent correctness/rules/spec/consumer/cleanup reviews completed; confirmed findings fixed and re-reviewed.

  • Codex follow-up regressions: explicit catalog version versus manifest version (native and legacy); no-Agent preview/config persistence with different, equal and unknown versions; Cursor/Antigravity inventory with differing Pi versions. All reproduced red before fixes, then passed make check and rebuilt plugin integration tests. All five website locales rebuilt successfully after the final docs update.

  • Final Pi-only compatibility fix 9d0af516: native discovery (including scoped npm names) and global/project materialization reproduced red before the fix, then passed the plugin suite, full make check, rebuilt plugin integration suite, five-locale website build, context-router check and five independent review passes. The maintainer approved this final fixing round; no fourth Codex review was requested.

Not covered

  • Codex last reviewed a329841; the final Pi-only fix 9d0af516 has local verification and independent review, but no further Codex review. GitHub CI for the new commit is pending.
  • A real OMP installation lifecycle: OMP is not installed in the devcontainer. Adapter integration uses the existing fake native runner.
  • Full browser install E2E: only the discovery presentation was browser-checked with mocked discovery data; installation remains covered by Go service/integration tests.
  • Windows E2E: no platform-link behavior changed.

Merge Danger

Door: Two-way; no migration or persistent-data rewrite.

Blast Radius: Plugins — catalog discovery, target metadata and install/adoption previews. Existing native OMP catalogs now intentionally prevent Claude fallback, including invalid or empty catalogs.

Checklist

  • I've read CONTRIBUTING.md
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

Resolve OMP entries from their native marketplace when present and inspect package.json extension-only plugins. Keep target-specific source paths, marketplace identities and components so Claude adoption and hybrid manifests remain valid.\n\nShow separate builds in text discovery without changing logical JSON selection, and cover native precedence, invalid catalogs, manifestless and hybrid packages, global/project materialization and CLI output with regression tests. Update the plugin docs and existing translations.\n\nFixes #587
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-10-20T04:01:46.999095Z a329841 Manual request
ℹ️ 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.

@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

case c.Problem == "":
mergeCatalogPath(&result.Candidates[i], c, catalogOwner[path])

P2 Badge Render merged candidates using per-target metadata

When same-name catalogs provide different builds, this merge leaves the candidate-level version from the first catalog and recomputes candidate-level components as their union. For the new OMP/Claude fixture, the dashboard candidate card in PluginAddDialog.tsx:168-170 therefore shows OMP 2.0.0 and extensions · hooks even for the Claude 0.1.0/hooks build; only the later preview uses the correct targetInfo. Update the dashboard presentation to use or expose the per-target version and components rather than presenting the merged aggregate as one build.

ℹ️ 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 internal/plugin/source.go
Comment on lines +301 to +303
for target, info := range c.TargetInfo {
info.Marketplace = catalog.Name
c.TargetInfo[target] = info

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 Preserve versions declared by OMP catalog entries

When a supported .omp-plugin/marketplace.json entry declares a version different from its package manifest, this loop records only the marketplace name and leaves TargetInfo["omp"].Version at the manifest fallback. The ompInstallVersion contract in internal/plugin/omp.go explicitly applies only when the catalog entry has no version, and pluginEntry also drops entry metadata for non-Claude targets, so preview and the generated Skillshare marketplace use the wrong version and cache identity. Carry the OMP entry's version into its per-target metadata and materialized catalog.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 8844e87. OMP catalog versions now override the manifest fallback in target metadata and are written into the generated native marketplace, so discovery, preview/bindings, cache allocation and native install agree. The same fix covers legacy Claude-catalog fallback. TestOMPCatalogVersionReachesNativeInstall reproduces catalog 3.0.0 versus package 2.0.0 for both native and legacy catalogs and verifies discovery, preview and materialized catalog versions. make check and the plugin integration suite passed in the devcontainer.

Keep OMP catalog versions in target discovery metadata and materialized marketplace entries so previews, cache guards, and native installs use the same version, including legacy catalog fallback. Cover catalog versions that differ from package manifests.

Show each dashboard discovery target's own version, components, and source path instead of presenting a merged candidate as one build.
@runkids

runkids commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

Fixed the per-target dashboard metadata finding from review #588 (review) in 8844e87. The discovery card now lists each target’s own version, components and build path rather than the logical candidate’s merged aggregate. I checked the remaining CLI/TUI/JSON/server/dashboard consumers; previews already use target metadata. Browser assertion and screenshots verify Claude 0.1.0/hooks versus OMP 2.0.0/extensions across Clean/Playful light/dark and a 390px viewport. Existing PluginAddDialog tests, UI lint/build and React Doctor passed (90/100, no new findings); make check passed. PR evidence and limitations are updated.

@runkids

runkids commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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

mergeCatalogPath(&result.Candidates[i], c, catalogOwner[path])

P2 Badge Clear the aggregate version when merged builds disagree

When same-name OMP and Claude catalogs expose different versions, this merge preserves the first candidate's aggregate Version while combining their per-target metadata. If the user chooses the supported no-Agent option, Service.Preview records that arbitrary version at service.go:302, and PluginList.tsx:86-88 displays it even though no build was selected and the other target has a different version. Clear the aggregate version when target versions differ, or derive this presentation from a selected target. Fresh evidence beyond the earlier picker comment is this post-fix no-Agent persistence and list consumer.

AGENTS.md reference: AGENTS.md:L36-L38

ℹ️ 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 internal/plugin/source_manifest.go Outdated
name = strings.ReplaceAll(strings.TrimPrefix(name, "@"), "/", "-")
if spec.target == "pi" {
if spec.target == "omp" {
if m["omp"] == nil || !ompExtensions(root) {

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 Accept Pi-only extension manifests for OMP catalogs

When an .omp-plugin/marketplace.json entry points to a package declaring only pi.extensions, this new m["omp"] == nil gate skips creating OMP target metadata even though ompExtensions explicitly recognizes pi.extensions as OMP's fallback. The authoritative-catalog pass then reports no OMP-compatible manifest, so users cannot install that valid native catalog entry for OMP. Accept either extension declaration here.

AGENTS.md reference: AGENTS.md:L36-L36

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Confirmed against OMP v18.6.1: extensibility/plugins/loader.ts uses pluginPkg.omp || pluginPkg.pi, and our ompExtensions helper already accepts pi.extensions. The additional omp-only gate in source_manifest.go rejects this supported native catalog case. This remains unfixed; after three completed Codex rounds I am pausing for maintainer approval before a fourth fixing round, as wiki/pull-requests.md requires. The minimal correction is to reuse ompExtensions without the extra gate and add native-catalog discovery/materialization regressions. No additional Codex review has been requested.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 9d0af51 after maintainer approval. The package inspector now reuses ompExtensions without the extra omp-only key gate, matching OMP v18.6.1 Pi compatibility. This covers native catalog discovery (including scoped package names) and target-specific global/project snapshot materialization without changing catalog authority. TestOMPDiscoverUsesItsOwnCatalogPackage and TestOMPAddCatalogPackageMaterializesNativeSource reproduced the Pi-only failures before the one-line fix; the plugin suite, full make check, rebuilt plugin integration suite, five-locale website build and context-router check passed. All five independent review passes were clean. No fourth Codex review requested, per the maintainer’s decision.

Derive candidate versions from agreement across supported targets and recompute after catalog overrides. No-Agent records and lists no longer inherit an arbitrary native build version; equal versions remain available and unknown versions stay unknown.

Keep Cursor and Antigravity inventory target-specific when manifests disagree. Cover no-Agent preview and persistence, equal and unknown versions, catalog overrides, and mixed-manifest local inventories. Align English and translated plugin references.
@runkids

runkids commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

Fixed the no-Agent aggregate-version finding from #588 (review) in a329841. Candidate metadata now keeps a shared version only when all supported targets agree, and discovery recomputes it after catalog overrides. This covers JSON/TUI aggregation, no-Agent preview/config persistence and the managed list without changing per-target binding/cache versions. The consumer sweep also changed Cursor/Antigravity local inventory to use its own target version. TestOMPMergedBuildVersionWithoutTargets covers different/equal/unknown versions through preview and persisted config; TestOMPCatalogVersionReachesNativeInstall covers catalog overrides; TestLocalInventoryUsesTargetVersion covers mixed Cursor/Antigravity and Pi manifests. Each new failure was reproduced before its fix. Full make check, rebuilt plugin integration tests, all-locale website build, context-router check and re-review passed. The recurring issue was aggregate metadata reaching consumers that represent different concepts; aggregation is now centralized, while installed-target inventory reads target metadata.

@runkids

runkids commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: a329841c85

ℹ️ 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".

Reuse the existing OMP extension detector instead of requiring an OMP-specific manifest key. Native OMP accepts Pi extension manifests too, so the extra gate rejected supported native catalog entries.

Cover Pi-only discovery with scoped package names and global/project materialization. Align the English plugin references and all existing translations.
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.

plugin add --target omp installs the Claude build when the repo has an .omp-plugin marketplace

1 participant